Skip to content

visible(...)

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.

visible(val : boolean) : this;

Sets the visibility of this node.

Nodes which are invisible will not be rendered but will still emit pointer events.

Default value: true

ParameterTypeDescription
valbooleanThe visibility to set.

this

myobject.visible(false);
// myobject is no longer shown on screen