Interact
Interact(
props):Element|null
Shows prompt above the entity while the player’s character is near, and fires
onInteract on the E key, or once she comes into reach after a click
on the entity where the camera walks her to a click. On a page in a room
the entity is the room’s, whose trait marks any player’s character near and
carries no callback: the page measures its own character and fires its own
prop.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
InteractProps |
Returns
Section titled “Returns”Element | null