Skip to content

Commit 269afc3

Browse files
committed
Fix UI scaling
1 parent 500730c commit 269afc3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Assets/Scenes/SampleScene.unity

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,12 +504,12 @@ MonoBehaviour:
504504
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
505505
m_Name:
506506
m_EditorClassIdentifier:
507-
m_UiScaleMode: 0
507+
m_UiScaleMode: 1
508508
m_ReferencePixelsPerUnit: 100
509509
m_ScaleFactor: 1
510-
m_ReferenceResolution: {x: 800, y: 600}
510+
m_ReferenceResolution: {x: 1080, y: 1920}
511511
m_ScreenMatchMode: 0
512-
m_MatchWidthOrHeight: 0
512+
m_MatchWidthOrHeight: 1
513513
m_PhysicalUnit: 3
514514
m_FallbackScreenDPI: 96
515515
m_DefaultSpriteDPI: 96

docs/Build/docs.data

3 Bytes
Binary file not shown.

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</head>
1010
<body>
1111
<div id="unity-container" class="unity-desktop">
12-
<canvas id="unity-canvas" width=540 height=960 tabindex="-1"></canvas>
12+
<canvas id="unity-canvas" width=270 height=480 tabindex="-1"></canvas>
1313
<div id="unity-loading-bar">
1414
<div id="unity-logo"></div>
1515
<div id="unity-progress-bar-empty">
@@ -94,8 +94,8 @@
9494
} else {
9595
// Desktop style: Render the game canvas in a window that can be maximized to fullscreen:
9696

97-
canvas.style.width = "540px";
98-
canvas.style.height = "960px";
97+
canvas.style.width = "270px";
98+
canvas.style.height = "480px";
9999
}
100100

101101
loadingBar.style.display = "block";

0 commit comments

Comments
 (0)