IsPropertyOverriden
Checks whether a property is overriden by this material.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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.