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

registerLocalLight

registerLocalLight(world, options): Disposer

Lights options from the world’s pool of local lights until the returned call takes it off, whenever it is among the lights that light the view most. The pool reads the record each frame, so write its position to move it, and its other values to change it. A room keeps the registration and lights nothing.

Parameter Type
world World
options LocalLightOptions

Disposer