The 2D layer · interface

ViewRect

What the view can see, in the same units the map is placed in.

Explained in Sprites and tilemaps.

interface ViewRect
import type { ViewRect } from '@driftengine/ui2d';

Properties

NameTypeDescription
xreadonlynumber
yreadonlynumber
wreadonlynumber
hreadonlynumber