# root

> Returns the topmost transform in the hierarchy.

## Definition

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

```csharp
public TransformHandle root { get; }
```

### Remarks

(This never returns TransformHandle.None, if this TransformHandle doesn't have a parent it returns itself.)

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    public GameObject Other;

    // Dos this have the same root as other transform?
    void Start()
    {
        if (Other.transformHandle.root != transformHandle.root)
        {
            print("The objects are not in the same hierarchy");
        }
    }
}
```
