natiny.model.set_part_material
natiny.model.set_part_material(model, part [, material])
Overrides the material of one part of the model.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
model |
number |
Model handle | |
part |
integer |
Zero-based part index; negative values are clamped to 0 |
|
material |
number |
0 |
Material handle, or 0 to inherit the model material |
Example
natiny.model.set_part_material(house, 3, glass)