Scene Scene { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Scene property of the SceneRenderingWidget class represents the active scene that is currently being rendered. This property is essential for determining which scene's content is displayed within the rendering widget.

Usage

To use the Scene property, you can access it directly from an instance of the SceneRenderingWidget class. This property is read-write, allowing you to get or set the active scene for rendering.

Example usage:

SceneRenderingWidget widget = new SceneRenderingWidget();
Scene currentScene = widget.Scene; // Get the current scene
widget.Scene = newScene; // Set a new scene to render

Example

SceneRenderingWidget widget = new SceneRenderingWidget();
Scene currentScene = widget.Scene; // Get the current scene
widget.Scene = newScene; // Set a new scene to render