Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2019.3
2020.1
2020.1.0b5
2020.2
Issue ID
1240174
Regression
No
Button click region is offset when the UI scaling is higher than 100%
How to reproduce:
1. Open the "SampleScene" scene in the attached "imguibug.zip" project
2. Change the UI scaling to 125% in Preferences > UI Scaling
3. Enter the Play Mode
4. Try clicking on any of the buttons
Expected Behaviour: Logs printed into the console indicating that either button 1 or 2 was pressed
Actual Behaviour: Nothing is printed unless you press slightly above the button
Reproducible with: 2019.3.12f1, 2020.1.0b8, 2020.2.0a9
Could not test with: 2018.4 as it does not seem to have UI scaling preference
Note: This only seems to happen when the button is instantiated from code using GUILayout and has a label above
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment