Api Sandbox UI RootPanel
class

RootPanel

public class RootPanel : Panel

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

Constructors

RootPanel()

Properties

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

Methods

virtual Void Delete(Boolean immediate = True)
virtual Void OnDeleted()
virtual Void OnLayout(Rect layoutRect)
Void RenderManual(Single opacity = 1)

Render this panel manually. This gives more flexibility to where UI is rendered, to texture for example. RenderedManually must be set to true.

Assembly: Sandbox.Engine Namespace: Sandbox.UI Full Name: Sandbox.UI.RootPanel