Material.HasPropertyfunction HasProperty (propertyName : String) : booleanDescriptionChecks if material's shader has a property of a given name. See Also: Materials, ShaderLab documentation.
JavaScript
// Attach this to a gameObject that has a renderer. using UnityEngine; import UnityEngine |
