Skip to content

@modoki/engine / index / consumePendingActivation

Function: consumePendingActivation() ​

consumePendingActivation(world): string | null

Fire the focused element's click bindings — the SAME path a tap runs. Reads the entity's UIAction off ECS so no UI-tree reference is needed. Idempotent: it clears pendingActivateGuid first (reads the live store value, not a captured one), so two UIRenderers draining in the same tick activate exactly once. Returns the activated GUID, or null if nothing was pending / the entity is gone.

Parameters ​

world ​

World

Returns ​

string | null

Built with Modoki.