The 2D layer · interface

UvRect

A rectangle of a texture, in the 0..1 the sampler reads. See spriteSheet.ts.

Explained in Sprites and tilemaps.

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

Properties

NameTypeDescription
u0readonlynumber
v0readonlynumber
u1readonlynumber
v1readonlynumber