Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

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.

Parameter Type
props InteractProps

Element | null