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
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | boolean | The visibility to set. |
Returns
Section titled “Returns”this
Example
Section titled “Example”myobject.visible(false);// myobject is no longer shown on screen