UI

Event

UI events follow the engine's event system, with the additional support for event bubbling in UI components.

Bubbling

The current version only supports the following bubbling flow:

InterfaceBubbles
onPointerEnterDoes not bubble
onPointerExitDoes not bubble
onPointerDownBubbles
onPointerUpBubbles
onPointerClickBubbles
onPointerBeginDragBubbles
onPointerDragBubbles
onPointerEndDragBubbles
onPointerDropBubbles

As shown in the diagram below, if node C triggers the pointerup event, the event will bubble along the path C --> B --> A --> RootCanvas.

Script Development

Was this page helpful?