Skip to content

skin(...)

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.

skin(val: string): this;

skin(val: Texture): this;

skin(val: Material): this;

Sets the material in slot zero for this object.

ParameterTypeDescription
valstring, Z.Texture, or Z.MaterialThe material to set in slot zero. If val is a string then a Z.ImageTexture is allocated and set.

this