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 current configuration of bodygroups, which are subsets of a model that can be shown or hidden independently. This property is of type System.UInt64
, allowing for a large number of possible configurations.
Usage
To use the MeshGroupMask
property, you can simply get or set its value on a SceneObject
instance. This property is particularly useful when you need to save or restore the state of bodygroups, or when you need to perform operations based on the current configuration of the model's bodygroups.
Example
// Example of getting and setting the MeshGroupMask property
// Assume 'sceneObject' is an instance of SceneObject
ulong currentMask = sceneObject.MeshGroupMask;
// Set a new mask value
sceneObject.MeshGroupMask = 0x000000000000000F; // Example mask value