setMaterial

open fun setMaterial(material: MaterialInstance)

Sets the material bound to the first submesh.


open fun setMaterial(submeshIndex: Int, material: MaterialInstance)

Sets the material bound to the specified submesh.