# Sandbox.UI.ScenePanel

Allows to render a scene world onto a panel.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)

## Constructors

- [`ScenePanel`](/api/Sandbox.UI.ScenePanel/.ctor)

## Properties

- [`Camera`](/api/Sandbox.UI.ScenePanel/Camera): The camera we're going to be using to render
- [`RenderOnce`](/api/Sandbox.UI.ScenePanel/RenderOnce): 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.
- [`RenderScene`](/api/Sandbox.UI.ScenePanel/RenderScene): The Scene this panel renders.
- [`RenderTexture`](/api/Sandbox.UI.ScenePanel/RenderTexture): 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.
- [`World`](/api/Sandbox.UI.ScenePanel/World): Shortcut to Camera.World

## Methods

- [`Delete`](/api/Sandbox.UI.ScenePanel/Delete)
- [`OnDraw`](/api/Sandbox.UI.ScenePanel/OnDraw)
- [`RenderNextFrame`](/api/Sandbox.UI.ScenePanel/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.
- [`SetProperty`](/api/Sandbox.UI.ScenePanel/SetProperty)
- [`Tick`](/api/Sandbox.UI.ScenePanel/Tick)
