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.
Properties
Section titled “Properties”designResolution
Section titled “designResolution”designResolution:
object
Defined in: camera/uiLayoutRect.ts:63
x:
number
y:
number
matchWidthOrHeight
Section titled “matchWidthOrHeight”matchWidthOrHeight:
number
Defined in: camera/uiLayoutRect.ts:65
scaleMode
Section titled “scaleMode”scaleMode:
number
Defined in: camera/uiLayoutRect.ts:64