# GetInstanceID()

> Returns the instance ID of the GameObject from which Unity performs the culling (for example, Camera, Light, etc.).

## Definition

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

> **Warning:**
>
> **Removed.** GetInstanceID() is obsolete, use GetEntityId() instead.

```csharp
public int GetInstanceID()
```

### Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |             |
