class ScenePanel : Panel

book_4_sparkGenerated
code_blocksInput

Description

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.

Members

Properties

Member NameSummary
WorldShortcut to Camera.World
CameraThe camera we're going to be using to render
RenderOnceIf enabled, the scene will only render once. Re-renders on panel size change.
RenderTextureThe texture that the panel is rendering to internally. Changes if the panel size changes.
RenderSceneThe scene to render to this panel.
HasContentIndicates if the panel has content to render.

Methods

Member NameSummary
TickUpdates the panel state. Override to implement custom behavior.
RenderNextFrameRender the panel again next frame. Useful with RenderOnce for on-demand rendering.
DeleteDeletes the panel. Can be immediate or deferred.
SetPropertySets a property on the panel with a specified name and value.