# InstanceIDToObject(int)

> Translates an instance ID to an object reference.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

> **Warning:**
>
> **Removed.** InstanceIDToObject is obsolete. Use EntityIdToObject instead.

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

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Instance ID of an [Object](/engine/6000.7/script-reference/unityengine/object.md).

### Returns

| Type                                                            | Description                                                          |
| --------------------------------------------------------------- | -------------------------------------------------------------------- |
| [Object](/engine/6000.7/script-reference/unityengine/object.md) | Resolved reference or null if the instance ID didn't match anything. |
