# parentInstanceId

> The instance ID for the parent GameObject of the GameObject that has been destroyed.

## Definition

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

> **Warning:**
>
> **Removed.** parentInstanceId is deprecated. Use parentEntityId instead.

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