Skip to content

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

ParameterTypeDescription
valbooleanThe value to set.

this

myobject.enabled(false);
// myobject is will no longer fire pointer events