Interface: UiInteractableDefaultedOptions
Defined in: ui/components/ui-interactable-component.ts:10
Fields of UiInteractableEcsComponent with a sensible default; callers may omit these.
Extended by
Properties
blocksRaycasts
blocksRaycasts:
boolean
Defined in: ui/components/ui-interactable-component.ts:28
Whether this element is considered by createUiRaycastEcsSystem at
all. false makes the element fully transparent to raycasting - the
pointer passes through to whatever is behind it - regardless of
interactable. Set false on a purely decorative interactable (rare)
or a temporarily inert one.
dragThreshold
dragThreshold:
number
Defined in: ui/components/ui-interactable-component.ts:35
How far, in reference pixels (UI world units), the pointer must move
from its press-down position before a held press becomes a drag (see
createUiInteractionEcsSystem's pointer state machine).
interactable
interactable:
boolean
Defined in: ui/components/ui-interactable-component.ts:19
Whether this element participates in interaction at all - receives
hover/press/focus and raises onInvoke. A false interactable is
skipped by createUiNavigationEcsSystem's focus traversal, and (unlike
blocksRaycasts) still blocks the raycast for elements behind it if
blocksRaycasts is true, the same way a disabled button still shadows
whatever is under it.