Skip to content

Variable: PokeInteractable

const PokeInteractable: Component<{ }>

Defined in: packages/core/src/input/state-tags.ts:52

Marks an entity as eligible for poke/touch interaction.

Remarks

  • Used for UI elements that can be poked/touched with finger or controller.
  • Auto-selects when finger crosses the surface (distance <= 0).
  • Uses hysteresis (separate enter/exit thresholds) to prevent flickering.

Example

ts
entity.addComponent(PokeInteractable);

Privacy | Terms