SceneWorld SceneWorld { get; set; }

robot_2Generated
code_blocksInput

Description

The SceneWorld property of the Scene class provides access to the SceneWorld instance associated with the current scene. This property is essential for managing and interacting with the world state within a scene, including entities, components, and other world-related data.

Usage

To access the SceneWorld property, you need to have an instance of the Scene class. Once you have the instance, you can directly access the SceneWorld property to interact with the world state of the scene.

Example

// Assuming 'scene' is an instance of Sandbox.Scene
SceneWorld world = scene.SceneWorld;

// Use 'world' to interact with the scene's world state
// For example, you might want to add or remove entities, or query the world state