UnityEditor.GameObjectUtility.AreStaticEditorFlagsSet C# (CSharp) Method

AreStaticEditorFlagsSet() private method

private AreStaticEditorFlagsSet ( GameObject go, StaticEditorFlags flags ) : bool
go UnityEngine.GameObject
flags StaticEditorFlags
return bool
        public static extern bool AreStaticEditorFlagsSet(GameObject go, StaticEditorFlags flags);
        internal static bool ContainsStatic(GameObject[] objects)

Usage Example

示例#1
0
 protected virtual UnityEngine.Object[] GetEmissives()
 {
     return(Resources.FindObjectsOfTypeAll <MeshRenderer>().Where((MeshRenderer mr) => {
         return (GameObjectUtility.AreStaticEditorFlagsSet(mr.gameObject, StaticEditorFlags.ContributeGI));
     }).SelectMany(meshRenderer => meshRenderer.sharedMaterials).Where((Material m) => {
         return m != null && ((m.globalIlluminationFlags & MaterialGlobalIlluminationFlags.AnyEmissive) != 0) && m.HasProperty("_EmissionColor");
     }).Distinct().ToArray());
 }
All Usage Examples Of UnityEditor.GameObjectUtility::AreStaticEditorFlagsSet