ScenePanelclass
Allows to render a scene world onto a panel.
Constructors2
Showing 2 constructors
No results match this filter.
Methods5
Showing 5 methods
public virtual void Delete(bool immediate = False)
| Parameter | Type | Description |
|---|---|---|
| immediate = False | bool | — |
void—public virtual void OnDraw()
void—public void RenderNextFrame()
Render the panel again next frame. This is meant to be used with RenderOnce, where you might want to render on demand or only once.
void—public virtual void SetProperty(string name, string value)
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| value | string | — |
void—public virtual void Tick()
void—No results match this filter.
Properties5
Showing 5 properties
public Sandbox.SceneCamera Sandbox.UI.ScenePanel.Camera { get; set; }
The camera we're going to be using to render
Obsolete: Handling SceneObjects like this manually will be removed soon. Use the actual Scene.
public bool Sandbox.UI.ScenePanel.RenderOnce { get; set; }
If enabled, the scene will only render once. That isn't totally accurate though, because we'll also re-render the scene when the size of the panel changes.
bool—public Sandbox.Scene Sandbox.UI.ScenePanel.RenderScene { get; set; }
The Scene this panel renders.
public Sandbox.Texture Sandbox.UI.ScenePanel.RenderTexture { get; set; }
The texture that the panel is rendering to internally. This will change to a different texture if the panel changes size, so I wouldn't hold onto this object.
public Sandbox.SceneWorld Sandbox.UI.ScenePanel.World { get; set; }
Shortcut to Camera.World
Obsolete: Handling SceneObjects like this manually will be removed soon. Use the actual Scene.
No results match this filter.