BuildTool
BuildTool(
props):Element
The build tool, mounted while a player builds: it aims from the pointer,
or from the screen’s centre while the camera holds the cursor, draws the
ghost of the piece in hand where it would stand, white where it may and
red where it may not, and sends place, move or remove. R or the
Rotate button turns the piece, a click or the Place button confirms, a
right click, X or the Cancel button puts it down; a tap moves the
ghost on a phone. It never frees or captures the cursor, and a drag that
moves the camera never places, and a click walks the character nowhere while it
is mounted. useBuildTool reads its state for a HUD. As Minecraft’s building to a player, and Fortnite’s build mode on a
phone.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
BuildToolProps |
Returns
Section titled “Returns”Element