setMaterial

open fun setMaterial(@IntRange(from = 0) primitiveIndex: Int, material: Material)

Sets the material bound to the specified index.


open fun setMaterial(entityIndex: Int, @IntRange(from = 0) primitiveIndex: Int, material: Material)

Sets the material bound to the specified index and entityIndex