IsPropertyOverriden
Checks whether a property is overriden by this material.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
IsPropertyOverriden(int)
Checks whether a property is overriden by this material.
public bool IsPropertyOverriden(int nameID)
Parameters
Property name ID, use Shader.PropertyToID to get it.
Returns
Type | Description |
|---|---|
| bool | Returns true if the property you pass in is overriden by this material. Otherwise, returns false. |
Remarks
This method is Editor-only.
Additional Resources: Material.ApplyPropertyOverride, Material.RevertPropertyOverride.
IsPropertyOverriden(string)
Checks whether a property is overriden by this material.
public bool IsPropertyOverriden(string name)
Parameters
Property name, e.g. "_SrcBlend".
Returns
Type | Description |
|---|---|
| bool | Returns true if the property you pass in is overriden by this material. Otherwise, returns false. |
Remarks
This method is Editor-only.
Additional Resources: Material.ApplyPropertyOverride, Material.RevertPropertyOverride.