# ResetToPrefabState(Object)

> Resets the properties of the component or game object to the parent Prefab state.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

> **Warning:**
>
> **Deprecated.** Use RevertObjectOverride.

```csharp
public static bool ResetToPrefabState(Object obj)
```

### Parameters

**** (\[Object]\(/engine/6000.0/script-reference/unityengine/object)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

All overrides will be cleared. However the transform.position and rotation of a root game object in a Prefab instance will never be cleared.
