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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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