Skip to content

API Type ScaleMode

github-actions[bot] edited this page Nov 25, 2026 · 4 revisions

Type Alias: ScaleMode

type ScaleMode = "fit" | "stretch" | "pixel-perfect";

Defined in: src/engine/core/settings.ts:12

How the game canvas scales to its container (see ProjectSettings.display.scaleMode).

Clone this wiki locally