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
- Shadows are not visible in Player when using DX12 with Forward+ or Deferred+ rendering in URP
- Rendering Debugger Playmode debug UI scrolling is jittery when using click and drag to scroll
- Frame Debugger Target Selection Search Results window becomes too tiny to even see the default “Editor” selection when there are no search results
- Element name field has no character limit in UI Builder
- Async method in Play Mode being aborted when calling `new System.Windows.Forms.Form`
Add comment