getMaterial

open fun getMaterial(): MaterialInstance

Returns the material bound to the first submesh.


open fun getMaterial(submeshIndex: Int): MaterialInstance

Returns the material bound to the specified submesh.