The World
property of the Gizmo
class provides access to the SceneWorld
associated with the current gizmo context. This property is static and publicly accessible, allowing you to interact with the scene world in which the gizmo operates.
The World
property of the Gizmo
class provides access to the SceneWorld
associated with the current gizmo context. This property is static and publicly accessible, allowing you to interact with the scene world in which the gizmo operates.
Use the World
property to access the SceneWorld
for operations that require interaction with the scene, such as rendering or modifying scene elements. This property is particularly useful when you need to perform operations that are dependent on the current scene context.
// Access the SceneWorld associated with the Gizmo SceneWorld currentWorld = Gizmo.World; // Example usage: Add an entity to the current scene world Entity newEntity = new Entity(); currentWorld.AddEntity(newEntity);