enabled(...)
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.
enabled(val : boolean) : this;
Sets the value of enabled for the node.
Disabled nodes do not emit pointer events but are still rendered.
Default value: true
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | boolean | The value to set. |
Returns
Section titled “Returns”this
Example
Section titled “Example”myobject.enabled(false);// myobject is will no longer fire pointer events