# GetPrefabAssetType(Object)

> Retrieves an enum value indicating the type of Prefab Asset, such as Regular Prefab, Model Prefab and Prefab Variant.

## Definition

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

```csharp
public static PrefabAssetType GetPrefabAssetType(Object componentOrGameObject)
```

### Parameters

**** (\[Object]\(/engine/6000.0/script-reference/unityengine/object)): An object that is part of a Prefab Asset or Prefab instance.

### Returns

| Type                                                                              | Description         |
| --------------------------------------------------------------------------------- | ------------------- |
| [PrefabAssetType](/engine/6000.0/script-reference/unityeditor/prefabassettype.md) | The type of Prefab. |
