Material.HasProperty Manual     Reference     Scripting  
Scripting > Runtime Classes > Material
Material.HasProperty

function HasProperty (propertyName : string) : bool

Description

Checks if material's shader has a property of a given name.

See Also: Materials, ShaderLab documentation.