set
Sets the material at the specified index for this component.
The index corresponds to a specific material applied to a part of the mesh. For example, a car model might have different materials for the body, windows, and tires.
Parameters
index
The position in the material array.
material
The Material to assign at the specified index.
Throws
IndexOutOfBoundsException
If index is outside the bounds of the array.