# GetParent()

> Gets the parent entity of this transform.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public Entity GetParent()
```

### Returns

| Type                                                               | Description                                            |
| ------------------------------------------------------------------ | ------------------------------------------------------ |
| [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) | The parent Entity, or Entity.Null if no parent exists. |

### Remarks

Returns Entity.Null if this transform is a root transform or is not currently part of a hierarchy.
