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
- Shader Graph Swizzle Node Input/Output and Mask Update Incorrectly After Undo
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
Add comment