GetMaterialPropertyNames(Object[])
Gets the shader property names of the materials you pass in.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static string[] GetMaterialPropertyNames(Object[] mats)
Parameters
The selected materials.
Returns
Type | Description |
|---|---|
| string[] | Returns the material property names. |
Remarks
When implementing custom MaterialEditors, you'd usually pass the array to this function, where is all the selected materials.
this.targetsthis.targetsAdditional Resources: MaterialProperty.