setMeshMaterial

fun setMeshMaterial(meshId: Int, materialId: Int)

Sets the material for a specific mesh in the model.

Parameters

meshId

The ID of the mesh to set the material for.

materialId

The ID of the material to set.


fun setMeshMaterial(meshId: Int, material: Material)

Sets the material for a specific mesh in the model.

Parameters

meshId

The ID of the mesh to set the material for.

material

The material to set.


fun setMeshMaterial(mesh: Mesh, material: Material)

Sets the material for a specific mesh in the model.

Parameters

mesh

The mesh to set the material for.

material

The material to set.