visible(...)

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

Parameter Type Description
val boolean The visibility to set.

Returns

this

Example

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