Model loading · function
materialSlots
An object's material slots: the object's own material where its slot says so, else the mesh's.
Explained in Importing models.
function materialSlots(object: BlendStruct, mesh: BlendStruct): (BlendStruct | null)[]import { materialSlots } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
object | BlendStruct | |
mesh | BlendStruct |