Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.3.0b4
Issue ID
959830
Regression
No
CanvasScaler does not scale UI properly if the Camera uses the "Viewport Rect" property
Reproduction steps:
1. Open the attached project "BugReport_UI_CanvasScaler_ViewportRect.zip";
2. Open Scene.unity;
3. Enter a Play mode;
4. Switch to 4:3 in Game view;
5. Select "Modify Camera.rect" GameObject in Hierarchy;
6. Change the "Value" slider in the Inspector from 0 to 0.3;
Expected results: CanvasScaler should take the Camera.rect value into account, to properly scale UI elements.
Actual results: no UI element is scaled - UI elements start to overlap.
Reproduced on: 5.6.3p4, 2017.1.2p1, 2017.2.0f3, 2017.3.0b5, 2018.1.0a1.
Comments (2)
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
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
- White lighting artifact when a point light with a small emission range and "Hard Shadows" touches an object while a directional light with "Soft Shadows" and another point light are present
JuicyPixels
Sep 27, 2018 15:18
I found something that could work if anyone else is having the same problem: https://answers.unity.com/questions/1313173/scale-a-canvas-based-on-reference-camera-viewport.html
JuicyPixels
Sep 27, 2018 15:16
I'm having exactly the same issue, are there any workarounds?