# instanceId

> The instance ID of the GameObject whose parent changed. Note that this is not the instance ID of the Transform component.

## Definition

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

> **Warning:**
>
> **Removed.** instanceId is deprecated. Use entityId instead.

```csharp
public int instanceId { get; }
```
