setMaterial

fun setMaterial(index: Int, material: Material)

Sets the material at the specified index.

Parameters

index

The index of the material to set.

material

The material to set.