Skip to content

CanvasScale

Defined in: camera/uiLayoutRect.ts:62

The design-resolution fit UI and the camera share — the project ScreenScaling when it opts in, else the scene’s Canvas (see CameraPlugin.resolveFitSource). One source for both, so what the editor lays out and what ships cannot differ.

designResolution: object

Defined in: camera/uiLayoutRect.ts:63

x: number

y: number


matchWidthOrHeight: number

Defined in: camera/uiLayoutRect.ts:65


scaleMode: number

Defined in: camera/uiLayoutRect.ts:64