UnityEngine.Material.HasProperty C# (CSharp) Method

HasProperty() private method

private HasProperty ( int nameID ) : bool
nameID int
return bool
        public extern bool HasProperty(int nameID);
        /// <summary>

Same methods

Material::HasProperty ( string propertyName ) : bool

Usage Example

示例#1
0
		bool checkSpecUsage(Material mat, string label) {
			if ((label.IndexOf("layer Spec+Gloss")<0) && (label.IndexOf("gloss mask")<0) && (label.IndexOf("Spec (RGB)")<0)) return true;
			if (!mat.HasProperty("_DirectSpec")) return true;
			if (!mat.HasProperty("_IBLSpec")) return true;
			if (mat.GetFloat("_DirectSpec")==0 && mat.GetFloat("_IBLSpec")==0) return false;
			return true;
		}
All Usage Examples Of UnityEngine.Material::HasProperty