void SetMaterialGroup( string name )

robot_2Generated
code_blocksInput

Description

The SetMaterialGroup method allows you to change the material group of a SceneModel. Material groups are used to switch between different sets of materials that a model can use, which can be useful for changing the appearance of a model dynamically.

Usage

To use the SetMaterialGroup method, call it on an instance of SceneModel and pass the name of the material group you want to set as a string parameter.

Example

// Example of using SetMaterialGroup
SceneModel myModel = new SceneModel();

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

// This will change the materials of the model to those defined in "GroupName".