# parentInstanceId

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

## Definition

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

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