Scene RenderScene { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The RenderScene property of the ScenePanel class specifies the Scene object that will be rendered onto the panel. This property allows you to set or get the scene that is currently being displayed in the panel.

Usage

To use the RenderScene property, you need to have an instance of ScenePanel. You can then assign a Scene object to this property to render it on the panel.

Example

// Create a new ScenePanel
ScenePanel scenePanel = new ScenePanel();

// Create a new Scene
Scene myScene = new Scene();

// Assign the scene to the RenderScene property
scenePanel.RenderScene = myScene;

// Now, myScene will be rendered on the scenePanel.