Interact
Interact(
__namedParameters):Element|null
Defined in: packages/engine/src/components/behaviours.tsx:157
Shows prompt above the entity while the hero is near, and fires
onInteract on the E key.
ponytail: bare markup for the prompt and a keydown on the window; 3.2’s
primitives draw it and a tap on it fires it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters |
InteractProps |
Returns
Section titled “Returns”Element | null