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;

Sets a texture (e.g. Z.ImageTexture or Z.VideoTexture) used as the skin.

Default value: null

ParameterTypeDescription
valstring, Z.Texture, or nullThe texture to set as the skin. If a string, the skin will be a Z.ImageTexture node with this name if one exists, otherwise; a newly-constructed Z.ImageTexture with this source.

this