The SceneObjects
property provides a read-only collection of all the SceneObject
instances that are part of this SceneWorld
. This collection allows you to access and iterate over the objects currently present in the scene world.
The SceneObjects
property provides a read-only collection of all the SceneObject
instances that are part of this SceneWorld
. This collection allows you to access and iterate over the objects currently present in the scene world.
Use the SceneObjects
property when you need to access or enumerate the scene objects within a SceneWorld
. This property is particularly useful for operations that require knowledge of all objects in the scene, such as rendering, collision detection, or scene management tasks.
// Example of accessing SceneObjects in a SceneWorld SceneWorld mySceneWorld = new SceneWorld(); // Iterate over all scene objects in the scene world foreach (SceneObject obj in mySceneWorld.SceneObjects) { // Perform operations with each SceneObject // For example, print the object's name string objectName = obj.Name; // Do something with objectName }