What it does
scene.pick takes x and y.
The API says: screen-space picking
Signature
scene.pick(x, y)Arguments
xy
Example · generated
function start() { scene.pick(0, 2);}scene.pick is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.