API ReferenceSandbox.UI
RootPanelclass
A root panel. Serves as a container for other panels, handles things such as rendering.
Constructors1
Showing 1 constructors
public RootPanel()
No results match this filter.
Methods6
Showing 6 methods
public virtual void Delete(bool immediate = True)
| Parameter | Type | Description |
|---|---|---|
| immediate = True | bool | — |
Returns:
void—public virtual void OnDeleted()
Returns:
void—public virtual void OnLayout(Sandbox.Rect layoutRect)
| Parameter | Type | Description |
|---|---|---|
| layoutRect | Rect | — |
Returns:
void—public void RenderManual(float opacity = 1)
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.
| Parameter | Type | Description |
|---|---|---|
| opacity = 1 | float | — |
Returns:
void—No results match this filter.
Properties6
Showing 6 properties
public bool Sandbox.UI.RootPanel.IsHighQualityVR { get; set; }
If this panel should be rendered with ~4K resolution.
Returns:
bool—public bool Sandbox.UI.RootPanel.IsVR { get; set; }
If this panel belongs to a VR overlay
Returns:
bool—public virtual bool Sandbox.UI.RootPanel.IsWorldPanel { get; set; }
True if this is a world panel, so should be skipped when determining cursor visibility etc
Returns:
bool—public Sandbox.Rect Sandbox.UI.RootPanel.PanelBounds { get; set; }
Bounds of the panel, i.e. its size and position on the screen.
No results match this filter.