# InstanceIDToObject(int)

> Translates an instance ID to a reference to an object.

## Definition

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

> **Warning:**
>
> **Removed.** InstanceIDToObject(int) is obsolete. Use EditorUtility.EntityIdToObject instead.

```csharp
public static Object InstanceIDToObject(int instanceID)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

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

### Remarks

If the object is not loaded from disk, loads it from disk.

![EditorUtilityInstanceIDToObject (InstanceIDToObject(int))](/api/media?file=/engine/6000.5/media/images/EditorUtilityInstanceIDToObject.png)

*Editor Window to enter the instance ID and print the name of the object.*
