enabled(...)

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

Parameter Type Description
val boolean The value to set.

Returns

this

Example

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