Class: Mesh
Lua
C++
Edit

Mesh:SetMaterial

This function sets the material for the mesh.

Syntax

Parameter Description
material the material to set
index the material index to set, between 1 and 4

Remarks

Each mesh can have up to four materials applied. Materials are blended with vertex material weights.

Copyright © 2024 Ultra Software.
All rights reserved.