Method FindPropertyLayered
FindPropertyLayered(string, int, bool)
Find a material property with layering option
Declaration
protected MaterialProperty[] FindPropertyLayered(string propertyName, int layerCount, bool isMandatory = false)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | Name of the property. |
int | layerCount | Number of layers of the shader. |
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. |