Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration SystemEventType

The event type supported by SystemEvent and Node events

Index

Enumeration members

ANCHOR_CHANGED

ANCHOR_CHANGED: = "anchor-changed"

The event type for anchor point change events. Performance note, this event will be triggered every time corresponding properties being changed, if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.

deprecated

CHILD_ADDED

CHILD_ADDED: = "child-added"

The event type for adding a new child node to the target node.

CHILD_REMOVED

CHILD_REMOVED: = "child-removed"

The event type for removing a child node from the target node.

COLOR_CHANGED

COLOR_CHANGED: = "color-changed"

The event type for color change events. Performance note, this event will be triggered every time corresponding properties being changed, if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.

DEVICEMOTION

DEVICEMOTION: = "devicemotion"

The event type for press the devicemotion event, you can use its value directly: 'devicemotion'

KEY_DOWN

KEY_DOWN: = "keydown"

The event type for press the key down event, you can use its value directly: 'keydown'

KEY_UP

KEY_UP: = "keyup"

The event type for press the key up event, you can use its value directly: 'keyup'

LAYER_CHANGED

LAYER_CHANGED: = "layer-changed"

The event type for node layer change events.

MOUSE_DOWN

MOUSE_DOWN: = "mouse-down"

The event type for mouse down events, you can use its value directly: 'mousedown'.

MOUSE_ENTER

MOUSE_ENTER: = "mouse-enter"

The event type for mouse leave target events, you can use its value directly: 'mouseleave'.

MOUSE_LEAVE

MOUSE_LEAVE: = "mouse-leave"

The event type for mouse leave target events, you can use its value directly: 'mouseleave'.

MOUSE_MOVE

MOUSE_MOVE: = "mouse-move"

The event type for mouse move events, you can use its value directly: 'mousemove'.

MOUSE_UP

MOUSE_UP: = "mouse-up"

The event type for mouse up events, you can use its value directly: 'mouseup'.

MOUSE_WHEEL

MOUSE_WHEEL: = "mouse-wheel"

The event type for mouse wheel events, you can use its value directly: 'mousewheel'.

NODE_DESTROYED

NODE_DESTROYED: = "node-destroyed"

The event type for destroying the target node

PARENT_CHANGED

PARENT_CHANGED: = "parent-changed"

The event type for changing the parent of the target node

SCENE_CHANGED_FOR_PERSISTS

SCENE_CHANGED_FOR_PERSISTS: = "scene-changed-for-persists"

The event type for notifying the host scene has been changed for a persist node.

SIBLING_ORDER_CHANGED

SIBLING_ORDER_CHANGED: = "sibling-order-changed"

The event type for node's sibling order changed.

SIZE_CHANGED

SIZE_CHANGED: = "size-changed"

The event type for size change events. Performance note, this event will be triggered every time corresponding properties being changed, if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.

TOUCH_CANCEL

TOUCH_CANCEL: = "touch-cancel"

The event type for touch end event, you can use its value directly: 'touchcancel'.

TOUCH_END

TOUCH_END: = "touch-end"

The event type for touch end event, you can use its value directly: 'touchend'.

TOUCH_MOVE

TOUCH_MOVE: = "touch-move"

The event type for touch move event, you can use its value directly: 'touchmove'.

TOUCH_START

TOUCH_START: = "touch-start"

The event type for touch start event, you can use its value directly: 'touchstart'.

TRANSFORM_CHANGED

TRANSFORM_CHANGED: = "transform-changed"

The event type for position, rotation, scale changed.Use the type parameter as Node.TransformBit to check which part is changed

example
this.node.on(Node.EventType.TRANSFORM_CHANGED, (type)=>{
 if (type & Node.TransformBit.POSITION) {
      //...
  }
}, this);

Generated using TypeDoc