Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2019.4.X, 2020.2.X
Votes
0
Found in
2019.4
2020.1
2021.1
Issue ID
1358451
Regression
Yes
CanvasScaler does not scale UI in relation to Camera Viewport Rect size
CanvasScaler does not scale UI in relation to Camera Viewport Rect property size when Canvas Render Mode is set to Screen Space - Camera
Reproduction steps:
1. Open the attached project
2. Open SampleScene in the Assets/Scenes folder
3. Open Game View
4. Select Main Camera in the Hierarchy menu
5. In the Main Camera Inspector window modify the Viewport Rect component H Value in 0 - 1 decimal range
6. Observe how Canvas UI elements scale
Expected results: UI scales in relation to Camera Viewport Rect size
Actual results: UI does not scale in relation to Camera Viewport Rect size
Reproducible with: 2019.4.21f1, 2020.1.0a1, 2020.2.6f1, 2021.1.0a1, 2021.1.0a7
Not reproducible with: 2019.4.22f1, 2019.4.29f1, 2020.2.7f1, 2020.3.17f1, 2021.1.0b9, 2021.1.17f1, 2021.2.0b9, 2022.1.0a6
Could not test with: 2021.1.0a8, 2021.1.0b8 (another issue - https://issuetracker.unity3d.com/issues/viewport-rect-affects-ui-canvas-gameobjects-positions-when-canvas-render-mode-is-set-to-screen-space-camera - makes this issue untestable)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Render Graph Viewer Capture button plays the click animation but does not do anything when the Capture button is pressed with the “Enter” key on the keyboard
- UI Builder Scrollview is unable to scroll all the way down when the window is downsized vertically
- Celestial bodies order remains unchanged when the Distance setting is modified
- A memory leak occurs with massive terrain when camera position changes occur.
- No valid hits are returned when using RaycastCommand
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.0b9
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.7f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.22f1