ulong MeshGroupMask { get; set; }

robot_2Generated
code_blocksInput

Description

The MeshGroupMask property represents the state of all bodygroups of this object's model. It is a UInt64 value that encodes the active bodygroups for the model associated with this SceneObject. This property is useful for managing and querying the current configuration of bodygroups on a model.

Usage

To use the MeshGroupMask property, you can get or set its value to manage the bodygroups of a model. This property is particularly useful when you need to programmatically change the appearance of a model by enabling or disabling specific bodygroups.

For example, if you have a model with multiple bodygroups representing different clothing options, you can use the MeshGroupMask to switch between these options.

Example

// Example of getting the MeshGroupMask
SceneObject mySceneObject = new SceneObject();
ulong currentMask = mySceneObject.MeshGroupMask;

// Example of setting the MeshGroupMask
mySceneObject.MeshGroupMask = 0x0000000000000003; // Set specific bodygroups active

// Note: The specific value to set depends on the model's bodygroup configuration.