Inheritence

Summary

A root panel. Serves as a container for other panels, handles things such as rendering.

Constructors

RootPanel

Properties

IsHighQualityVR If this panel should be rendered with ~4K resolution.
IsVR If this panel belongs to a VR overlay
IsWorldPanel True if this is a world panel, so should be skipped when determining cursor visibility etc
PanelBounds Bounds of the panel, i.e. its size and position on the screen.
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 The scale of this panel and its children.

Methods

Delete
OnDeleted
OnLayout
RenderManual Render this panel manually. This gives more flexibility to where UI is rendered, to texture for example. Sandbox.UI.RootPanel.RenderedManually must be set to true.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.