setMaterialInstance
Sets the material bound to the first index.
open fun setMaterialInstance(@IntRange(from = 0) primitiveIndex: Int, materialInstance: MaterialInstance)
Sets the material bound to the specified index.
open fun setMaterialInstance(entityIndex: Int, @IntRange(from = 0) primitiveIndex: Int, materialInstance: MaterialInstance)
Sets the material bound to the specified index and entityIndex