# Sandbox.UI.RootPanel

A root panel. Serves as a container for other panels, handles things such as rendering.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)

## Constructors

- [`RootPanel`](/api/Sandbox.UI.RootPanel/.ctor): A root in the game's UI. This is the one addon code wants.

## Properties

- [`IsHighQualityVR`](/api/Sandbox.UI.RootPanel/IsHighQualityVR): If this panel should be rendered with ~4K resolution.
- [`IsVR`](/api/Sandbox.UI.RootPanel/IsVR): If this panel belongs to a VR overlay
- [`IsWorldPanel`](/api/Sandbox.UI.RootPanel/IsWorldPanel): True if this is a world panel, so should be skipped when determining cursor visibility etc
- [`PanelBounds`](/api/Sandbox.UI.RootPanel/PanelBounds): Bounds of the panel, i.e. its size and position on the screen.
- [`RenderedManually`](/api/Sandbox.UI.RootPanel/RenderedManually): If set to true this panel won't be rendered to the screen like a normal panel. This is true when the panel is drawn via other means (like as a world panel).
- [`Scale`](/api/Sandbox.UI.RootPanel/Scale): The scale of this panel and its children.

## Methods

- [`Delete`](/api/Sandbox.UI.RootPanel/Delete)
- [`OnDeleted`](/api/Sandbox.UI.RootPanel/OnDeleted)
- [`OnLayout`](/api/Sandbox.UI.RootPanel/OnLayout)
- [`RenderManual`](/api/Sandbox.UI.RootPanel/RenderManual): Render this panel manually. This gives more flexibility to where UI is rendered, to texture for example. [Sandbox.UI.RootPanel.RenderedManually](/api/Sandbox.UI.RootPanel/RenderedManually) must be set to true.
