materials(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
materials(val: (string | Texture | Material)[]): this;
Set all of the materials for this object.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | array of strings, Z.Textures, or Z.Materials | The materials to set. If any element of val is a string then a Z.ImageTexture is allocated in its place. |
Returns
Section titled “Returns”this