IReadOnlyCollection<SceneObject> SceneObjects { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

Provides a read-only collection of SceneObject instances that are part of this SceneWorld. This property allows you to access all the scene objects that belong to the current scene world, enabling you to iterate over them or perform operations that require knowledge of all objects within the scene.

Usage

Use the SceneObjects property when you need to access or iterate over all the scene objects within a SceneWorld. This can be useful for operations such as rendering, updating, or applying transformations to all objects in the scene.

Example

// 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 on each scene object
    obj.DoSomething();
}