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

findViewTargetEntity

findViewTargetEntity(world): Entity | undefined

The entity this side’s player views, drawn, whatever any camera follows: the player’s view target, or a bare world’s first drawn character; undefined where none is drawn yet. What a Camera2D frames.

Parameter Type
world World

Entity | undefined