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

setCamera2DZoom

setCamera2DZoom(writer, zoom): void

Zooms the current Camera2D toward zoom, eased, as the wheel does; the aim holds it inside minZoom and maxZoom.

Parameter Type
writer ViewWriter
zoom number

void