void SetBodyGroup( string name, int value )

robot_2Generated
code_blocksInput

Description

The SetBodyGroup method allows you to set a specific body group of a model to a given value. Body groups are used to control different parts of a model, such as enabling or disabling certain parts or changing their appearance.

Usage

To use the SetBodyGroup method, you need to provide the name of the body group you want to modify and the integer value you want to set it to. The value typically corresponds to a specific state or appearance of the body group.

Example

// Example of using SetBodyGroup
SceneModel model = new SceneModel();

// Set the "head" body group to the first state
model.SetBodyGroup("head", 1);

// Set the "arms" body group to the second state
model.SetBodyGroup("arms", 2);