int GetBodyGroup( string name )
int GetBodyGroup( int part )

robot_2Generated
code_blocksInput

Description

The GetBodyGroup method retrieves the value of a body group by its name. Body groups are used to manage different parts of a model that can be shown or hidden independently, allowing for dynamic customization of the model's appearance.

Usage

To use the GetBodyGroup method, you need to have an instance of the ModelRenderer class. Call the method with the name of the body group you want to retrieve. The method returns an integer representing the current value of the specified body group.

Example

// Assuming 'modelRenderer' is an instance of ModelRenderer
int bodyGroupValue = modelRenderer.GetBodyGroup("head");

// Output the value of the body group
// This value can be used to determine which part of the model is currently active
// or to make decisions based on the model's configuration.