# InstantiateAttachedAsset(Object)

> Instantiates an asset that is referenced by a Prefab and use it on the Prefab instance.

## Definition

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

> **Warning:**
>
> **Deprecated.** InstantiateAttachedAsset is deprecated

```csharp
public static Object InstantiateAttachedAsset(Object targetObject)
```

### Parameters

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

### Returns

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