Search Issue Tracker
Fixed in 5.2.0
Votes
0
Found in
4.3.1f1
Issue ID
579006
Regression
No
GUISkin.label.CalcHeight() returns inconsistent values
To reproduce:
1. Open attached project
2. Open scene "CalcHeightWrong". It contains a 1st person controller and a cube trigger collider. The scene camera also has a script with an empty OnGUI()
3. Enter play mode and press space - it calls the function GUISkin.label.CalcHeight() and outputs the result in the console (which should be 106)
4. Now walk through the cube - the same function is called but the result is different - 126
Usually just walking through the cube can provide different results. This is somehow related to the empty OnGUI() script attached to the main camera as disabling it makes the GUISkin.label.CalcHeight() return a consistent value.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
- The build size is larger when Models have Animation Type set to Generic
Add comment