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

registerClickClaim

registerClickClaim(world, claim): Disposer

Adds a claim on the world’s clicks, and returns what takes it off: click-to-walk asks each claim, in the order registered, with the ray of a click, and walks the character nowhere on a click one takes. What <Targeting> claims a click on a target with, and what a game’s own picker, such as one that selects a unit, claims its clicks with. Godot marks an input handled as it is read, set_input_as_handled; this asks before the walk, so the order the page’s listeners run in never matters.

Parameter Type
world World
claim ClickClaim

Disposer