Skip to content

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.

ParameterTypeDescription
valarray of strings, Z.Textures, or Z.MaterialsThe materials to set. If any element of val is a string then a Z.ImageTexture is allocated in its place.

this