Version: 2023.2
言語: 日本語
public void RevertPropertyOverride (string name);
public void RevertPropertyOverride (int nameID);

パラメーター

nameID プロパティー名 ID。Shader.PropertyToID を使って取得します。
name プロパティー名。例えば、"_SrcBlend"。

説明

Removes the override on a property.

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.