setPart

fun setPart(index: Int, mesh: Mesh, material: Material)

Sets the mesh and its associated material at the specified index.

Parameters

index

The index of the part to set.

mesh

The mesh to set.

material

The material to set.