void SetMaterialGroup( string name )

robot_2Generated
code_blocksInput

Description

The SetMaterialGroup method is used to assign a specific material group to a SceneObject. Material groups allow you to switch between different sets of materials that are predefined for a model, enabling dynamic changes in appearance without altering the model itself.

Usage

To use the SetMaterialGroup method, call it on an instance of SceneObject and pass the name of the material group you wish to apply as a string parameter. Ensure that the material group name corresponds to one of the predefined groups in the model's material setup.

Example

// Example of using SetMaterialGroup
SceneObject mySceneObject = new SceneObject();

// Set the material group to 'GroupName'
mySceneObject.SetMaterialGroup("GroupName");