robot_2Generated
code_blocksInput

Description

The Flags property provides access to various advanced scene object flags within the SceneObject class. These flags can be used to control specific behaviors or characteristics of the scene object, allowing for more granular control over its rendering and interaction within the scene.

Usage

To use the Flags property, you can access it directly from an instance of SceneObject. This property returns a SceneObjectFlagAccessor, which can be used to manipulate the flags associated with the scene object.

Example

// Example of accessing and using the Flags property
SceneObject mySceneObject = new SceneObject();

// Access the Flags property
var flags = mySceneObject.Flags;

// Example: Set a specific flag
flags.SetFlag(SceneObjectFlags.SomeFlag, true);

// Example: Check if a specific flag is set
bool isFlagSet = flags.HasFlag(SceneObjectFlags.SomeFlag);