SceneObject SceneObject { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The SceneObject property of the ModelRenderer class provides access to the underlying SceneObject associated with the model being rendered. This property is crucial for interacting with the scene graph, allowing you to manipulate the model's position, rotation, and other scene-related attributes.

Usage

Use the SceneObject property to access and modify the scene-related properties of the model. This can include transformations, visibility, and other scene-specific attributes.

Example

// Example of accessing the SceneObject property
ModelRenderer modelRenderer = new ModelRenderer();
SceneObject sceneObject = modelRenderer.SceneObject;

// Modify the position of the SceneObject
sceneObject.Position = new Vector3(0, 0, 0);

// Set the SceneObject to be visible
sceneObject.Visible = true;