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

BoundTapProps

A tap bound to a button input, a command with no fields or a page action that declares touch, such as characters.inputs.jump: it presses it as its key does, shows the declaration’s label and icon, and takes the place of the button the engine draws for it in its row.

Property Type Default value Description
children? ReactNode undefined In place of the declaration’s icon.
className? string undefined An override that shows in the diff.
hidden? boolean false Draws nothing, and still takes the place of the engine’s button for the input: one button hidden while the row stays.
input InputHandle<boolean> | TouchCommandHandle | TouchPageActionHandle undefined -
look? boolean false Whether the finger that holds it also turns the camera as it drags, at the camera’s touchLookSpeed, so the player tracks a target while the button holds, as a weapon’s fire button does.
onTap? undefined undefined -
slot? Slot Slot.BottomRight The slot it stands in.