GetMaterialProperty
Get information about a single shader property.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
GetMaterialProperty(Object[], string)
Get information about a single shader property.
public static MaterialProperty GetMaterialProperty(Object[] mats, string name)
Parameters
Returns
Type | Description |
|---|---|
| MaterialProperty | Returns the property at the specified index. |
Remarks
When implementing custom MaterialEditors, you'd usually pass the array to this function, where is all the selected materials.
this.targetsthis.targetsAdditional Resources: MaterialEditor.GetMaterialProperties, MaterialProperty.
GetMaterialProperty(Object[], int)
Get information about a single shader property.
public static MaterialProperty GetMaterialProperty(Object[] mats, int propertyIndex)
Parameters
Returns
Type | Description |
|---|---|
| MaterialProperty | Returns the property at the specified index. |
Remarks
When implementing custom MaterialEditors, you'd usually pass the array to this function, where is all the selected materials.
this.targetsthis.targetsAdditional Resources: MaterialEditor.GetMaterialProperties, MaterialProperty.