Method FindProperty
FindProperty(string, bool)
Find a material property in the list of available properties.
Declaration
protected MaterialProperty FindProperty(string propertyName, bool isMandatory = false)
Parameters
| Type | Name | Description | 
|---|---|---|
| string | propertyName | Name of the property.  | 
    
| bool | isMandatory | Specifies whether the property is mandatory for your Inspector.  | 
    
Returns
| Type | Description | 
|---|---|
| MaterialProperty | Returns the material property if it exists. Returns null otherwise.  |