RenderAttributes Attributes { get; set; }

robot_2Generated
code_blocksInput

Description

The Attributes property of the SceneObject class provides access to the rendering attributes associated with the scene object. These attributes can be used to modify how the object is rendered within the scene, such as adjusting its material properties, lighting effects, and other visual characteristics.

Usage

To access or modify the rendering attributes of a SceneObject, use the Attributes property. This property returns an instance of RenderAttributes, which can be used to set various rendering parameters.

Example usage:

SceneObject mySceneObject = new SceneObject();
RenderAttributes renderAttributes = mySceneObject.Attributes;

// Modify rendering attributes
renderAttributes.SetFloat("SomeAttribute", 1.0f);
renderAttributes.SetColor("ColorAttribute", Color.Red);

Example

SceneObject mySceneObject = new SceneObject();
RenderAttributes renderAttributes = mySceneObject.Attributes;

// Modify rendering attributes
renderAttributes.SetFloat("SomeAttribute", 1.0f);
renderAttributes.SetColor("ColorAttribute", Color.Red);