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.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | string, Z.Texture, or Z.Material | The material to set in slot zero. If val is a string then a Z.ImageTexture is allocated and set. |
Returns
Section titled “Returns”this