bool HasBodyGroups { get; set; }

robot_2Generated
code_blocksInput

Description

The HasBodyGroups property of the ModelRenderer class indicates whether the model has body groups available. Body groups are used to manage different parts of a model that can be shown or hidden independently, allowing for more dynamic and customizable models.

Usage

Use the HasBodyGroups property to check if the model associated with the ModelRenderer has any body groups defined. This can be useful when you want to conditionally perform operations on body groups, such as setting or getting their values.

Example

// Example of checking if a model has body groups
ModelRenderer modelRenderer = new ModelRenderer();

if (modelRenderer.HasBodyGroups)
{
    // Perform operations related to body groups
    int bodyGroupValue = modelRenderer.GetBodyGroup("head");
    modelRenderer.SetBodyGroup("head", bodyGroupValue + 1);
}