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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Add comment