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

readCamera2DView

readCamera2DView(world): Readonly<Camera2DView> | null

The plane rectangle the current Camera2D’s frame shows, unshaken, in the plane’s two axes, such as for spawning a wave just off the screen; null with no Camera2D, or before its first frame. As Phaser’s camera.worldView and Godot’s visible rectangle.

Parameter Type
world World

Readonly<Camera2DView> | null