getMaterialInstance

open fun getMaterialInstance(): MaterialInstance

Returns the material bound to the first submesh.


open fun getMaterialInstance(index: Int): MaterialInstance

Returns the material bound to the specified index.


open fun getMaterialInstance(name: String): MaterialInstance

Returns the material bound to the specified name.