# IsPartOfModelPrefab(Object)

> Returns true if the given object is part of a Model Prefab Asset or Model Prefab instance.

## Definition

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

```csharp
public static bool IsPartOfModelPrefab(Object componentOrGameObject)
```

### Parameters

**** (\[Object]\(/engine/6000.3/script-reference/unityengine/object)): The object to check. Must be a component or GameObject.

### Returns

| Type                                                          | Description                                   |
| ------------------------------------------------------------- | --------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the object is part of a Model Prefab. |

### Remarks

An object is part of a Model Prefab instance if it has a Model Prefab as outermost Prefab instance root. To get the outermost Prefab instance root, use [PrefabUtility.GetOutermostPrefabInstanceRoot](/engine/6000.3/script-reference/unityeditor/prefabutility/getoutermostprefabinstanceroot.md).
