Skip to content

makeWidgetInteractable

makeWidgetInteractable(world, entity, init?): void

Defined in: ui/input/interactable.ts:57

The one interaction assembly every widget shares: a raycast-blocking Interactable plus (by default) a Focusable so the control is keyboard- reachable. Per-frame pointer state (UIInteraction) is transient — the hit-test system creates it on demand, widgets never insert it.

World

number

WidgetInteractionInit = {}

void