ScreenScalingData
此内容尚不支持你的语言。
Defined in: camera/ScreenScaling.ts:30
Properties
Section titled “Properties”designHeight
Section titled “designHeight”designHeight:
number
Defined in: camera/ScreenScaling.ts:34
Design (reference) resolution height in px.
designWidth
Section titled “designWidth”designWidth:
number
Defined in: camera/ScreenScaling.ts:32
Design (reference) resolution width in px — the horizontal reference the fit uses.
matchWidthOrHeight
Section titled “matchWidthOrHeight”matchWidthOrHeight:
number
Defined in: camera/ScreenScaling.ts:38
Match-mode blend 0..1 (0 = fit width, 1 = fit height); ignored for other modes.
renderPolicy?
Section titled “renderPolicy?”
optionalrenderPolicy?:RenderResolution
Defined in: camera/ScreenScaling.ts:45
Whether the scene renders at its own resolution and is then scaled to the
surface, or straight to the surface. See RenderResolution. Optional
because a project file written before it existed must still read; absent
means Surface, which is the behaviour every project already had.
scaleMode
Section titled “scaleMode”scaleMode:
number
Defined in: camera/ScreenScaling.ts:36
A CanvasScaleMode (FixedWidth=0 … Match=4), or SCREEN_FIT_OFF (-1).