| Parameter | Description |
|---|---|
| mats | The materials to get the property for. |
| name | The name of the shader property, for example _Color. |
MaterialProperty The material property with the specified name.
Obtains information about a shader property, identified by name, for a set of materials.
When you implement a custom material editor, pass this.targets to this method to get the property for all the selected materials. The method throws an exception if mats is null or contains a null element.
| Parameter | Description |
|---|---|
| mats | The materials to get the property for. |
| propertyIndex | The index of the property in the shader. |
MaterialProperty The material property at the specified index.
Obtains information about a shader property, identified by index, for a set of materials.
When you implement a custom material editor, pass this.targets to this method to get the property for all the selected materials. The method throws an exception if mats is null or contains a null element.