# GetPrefabParent(Object)

> Returns the parent asset object of source, or null if it can't be found.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use GetCorrespondingObjectFromSource.

```csharp
public static Object GetPrefabParent(Object obj)
```

### Parameters

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

### Returns

| Type                                                            | Description |
| --------------------------------------------------------------- | ----------- |
| [Object](/engine/6000.0/script-reference/unityengine/object.md) |             |

### Remarks

Use this function to get a Prefab Asset object the source was instantiated from. This also returns the Prefab parent if the Prefab has become disconnected, which can then be used to reconnect the Prefab.
