# RevertPropertyOverride

> Removes the override on a property.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## RevertPropertyOverride(int)

Removes the override on a property.

```csharp
public void RevertPropertyOverride(int nameID)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Property name ID, use [Shader.PropertyToID](/engine/6000.7/script-reference/unityengine/shader/propertytoid.md) 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](/engine/6000.7/script-reference/unityengine/material/ispropertyoverriden.md), [Material.ApplyPropertyOverride](/engine/6000.7/script-reference/unityengine/material/applypropertyoverride.md).

## RevertPropertyOverride(string)

Removes the override on a property.

```csharp
public void RevertPropertyOverride(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): 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](/engine/6000.7/script-reference/unityengine/material/ispropertyoverriden.md), [Material.ApplyPropertyOverride](/engine/6000.7/script-reference/unityengine/material/applypropertyoverride.md).
