# HasPrefabInstanceAnyOverrides(GameObject, bool)

> Returns true if the given Prefab instance has any overrides.

## Definition

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

```csharp
public static bool HasPrefabInstanceAnyOverrides(GameObject instanceRoot, bool includeDefaultOverrides)
```

### Parameters

**** (\[GameObject]\(/engine/6000.3/script-reference/unityengine/gameobject)): The root GameObject of the Prefab instance to check.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Set to true to consider default overrides as overrides too.

### Returns

| Type                                                          | Description                              |
| ------------------------------------------------------------- | ---------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if there are any overrides. |

### Remarks

This method is the quickest way to check if a Prefab instance has any overrides, when not needing to know what those overrides are.

The includeDefaultOverrides parameter should normally be set to false, except for debugging purposes. If set to true, the method will normally return true for all Prefabs instances, since all Prefab instances have default overrides for the root position and rotation, among others.
