SetMeshMaterial()
Syntax
SetMeshMaterial(#Mesh, MaterialID [, SubMesh])Description
Set the mesh default material.
Parameters
Mesh The mesh to use. MaterialID The default material to use for the mesh. To get a valid 'MaterialID', use MaterialID(). SubMesh (optional) If specified, the material will be applied only to the submesh. The first submesh index is 0 (main mesh).
Return value
None.
See Also
CreateMesh(), LoadMesh()
Supported OS
All