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

CanvasTapContext

What onTap receives for each tap.

Type Parameter
Target
Property Type Description
event PointerEvent The release, for its pointer type or its position on the page.
ray Ray The ray from the canvas camera through the point released, in world space: a copy of the tap’s own, which a later tap leaves as it was.
target Target | null What findTarget returned for the ray, or null where it found none.