文档

Unity Engine

Unity Engine

RevertPropertyOverride

Removes the override on a property.
阅读时间1 分钟最后更新于 1 个月前

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.