コード例 #1
0
ファイル: FxLODInspector.cs プロジェクト: fengqk/Art
	void OnEnable()
	{
		thisTarget = serializedObject.targetObject as FxLOD;
		thisTarget.particleSystems = thisTarget.GetComponentsInChildren<ParticleSystem>();

		UpdateInfos();
	}
コード例 #2
0
ファイル: FxLODCounter.cs プロジェクト: fengqk/Art
	static bool IsLodPrioritiesSetted(FxLOD lod)
	{
		foreach (var p in lod.priorities)
		{
			if (p != 0) return true;
		}
		return false;
	}
コード例 #3
0
ファイル: SfxResourceCheck.cs プロジェクト: frozen4/UnityPlus
    public IEnumerable DoCheckFxLOD(string prefabName, GameObject sfxPrefab)
    {
        FxLOD lod = sfxPrefab.GetComponent <FxLOD>();

        if (lod != null)
        {
            bool         missing = false;
            GameObject[] objs    = lod.allKeyGameObjects;
            for (int i = 0; i < objs.Length; ++i)
            {
                if (objs[i] == null)
                {
                    missing = true;
                }
            }

            if (missing)
            {
                _ErrorString += string.Format("特效包含FOD,但allKeyGameObjects中有GameObject为空! {0}\n", prefabName);
            }
        }

        yield return(null);
    }