Description
The MeshGroupMask
property of a SceneObject
represents the state of all bodygroups of the object's model. This property is useful for managing and querying the different bodygroups that a model can have, allowing for dynamic changes to the model's appearance based on the active bodygroups.
Usage
To use the MeshGroupMask
property, you can get or set its value to manage the bodygroups of a model associated with a SceneObject
. This property is of type System.UInt64
, which allows for a large number of bodygroup combinations.
If you need to modify a specific bodygroup, consider using the SetBodyGroup
method on the SceneModel
class, which provides a more direct way to change individual bodygroups.
Example
// Example of accessing the MeshGroupMask property
SceneObject mySceneObject = new SceneObject();
// Get the current mesh group mask
ulong currentMask = mySceneObject.MeshGroupMask;
// Set a new mesh group mask
mySceneObject.MeshGroupMask = 0x0000000000000001; // Example mask value
// Use SetBodyGroup for specific bodygroup changes
mySceneObject.Model.SetBodyGroup("head", 1);