# rootCanvas

> Returns the Canvas closest to root, by checking through each parent and returning the last canvas found. If no other canvas is found then the canvas will return itself.

## Definition

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

```csharp
public Canvas rootCanvas { get; }
```

### Remarks

Additional Resources: [Canvas.isRootCanvas](/engine/6000.5/script-reference/unityengine/canvas/isrootcanvas.md).
