Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

nameID

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.

RevertPropertyOverride(string)

Removes the override on a property.
public void RevertPropertyOverride(string name)

Parameters

name

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.