book_4_sparkGenerated
code_blocksInput

Description

The Flags property provides access to various advanced scene object flags for a SceneObject. These flags can be used to control specific behaviors or characteristics of the scene object within the rendering engine.

Usage

To access or modify the flags of a SceneObject, use the Flags property. This property returns a SceneObjectFlagAccessor which allows you to interact with the flags.

Example

// Example of accessing the Flags property of a SceneObject
SceneObject mySceneObject = new SceneObject();
var flags = mySceneObject.Flags;

// Example of setting a specific flag
flags.SetFlag(SceneObjectFlags.SomeFlag, true);

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