The World
property of the Gizmo
class provides access to the SceneWorld
associated with the current gizmo context. This property is static and can be accessed without instantiating the Gizmo
class.
The World
property of the Gizmo
class provides access to the SceneWorld
associated with the current gizmo context. This property is static and can be accessed without instantiating the Gizmo
class.
Use the World
property to interact with the scene world in which the gizmo is operating. This can be useful for operations that require knowledge of the scene's state or for manipulating objects within the scene.
// Accessing the SceneWorld associated with the Gizmo SceneWorld currentWorld = Gizmo.World; // Example usage: Adding an entity to the current scene world Entity newEntity = new Entity(); currentWorld.AddEntity(newEntity);