# HasParent()

> Does this transform have a parent?

## Definition

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

```csharp
public bool HasParent()
```

### Returns

| Type                                                          | Description                               |
| ------------------------------------------------------------- | ----------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the TransformHandle has a parent. |

### Remarks

Returns a boolean value that indicates whether the transform has a parent or not.
