RevertPropertyOverride
Removes the override on a property.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
RevertPropertyOverride(int)
Removes the override on a property.
public void RevertPropertyOverride(int nameID)
Parameters
Property name ID, use Shader.PropertyToID to get it.
Remarks
After the Editor reverts a Property override, it no longer marks that Property as overriden. That Property now inherits its value from the parent. Note that this method is Editor-only.
Additional Resources: Material.IsPropertyOverriden, Material.ApplyPropertyOverride.
RevertPropertyOverride(string)
Removes the override on a property.
public void RevertPropertyOverride(string name)
Parameters
Property name, e.g. "_SrcBlend".
Remarks
After the Editor reverts a Property override, it no longer marks that Property as overriden. That Property now inherits its value from the parent. Note that this method is Editor-only.
Additional Resources: Material.IsPropertyOverriden, Material.ApplyPropertyOverride.