The ScenePanel class in the Sandbox.UI
namespace allows rendering a scene world onto a panel. It provides properties and methods to manage the rendering process, including setting the camera, world, and scene to be rendered.
The ScenePanel class in the Sandbox.UI
namespace allows rendering a scene world onto a panel. It provides properties and methods to manage the rendering process, including setting the camera, world, and scene to be rendered.
Member Name | Summary |
---|---|
World | Shortcut to Camera.World |
Camera | The camera we're going to be using to render |
RenderOnce | If enabled, the scene will only render once. Re-renders on panel size change. |
RenderTexture | The texture that the panel is rendering to internally. Changes if the panel size changes. |
RenderScene | The scene to render to this panel. |
HasContent | Indicates if the panel has content to render. |
Member Name | Summary |
---|---|
Tick | Updates the panel state. Override to implement custom behavior. |
RenderNextFrame | Render the panel again next frame. Useful with RenderOnce for on-demand rendering. |
Delete | Deletes the panel. Can be immediate or deferred. |
SetProperty | Sets a property on the panel with a specified name and value. |