Search Issue Tracker
Fixed in 1.5.2, 2.1.2, 3.0.2
Votes
0
Found in [Package]
1.5.0-preview.10
Issue ID
1285499
Regression
Yes
Incorrect values are returned when calling TextMeshProGUI.GetPreferredValues more than once
How to reproduce:
1. Open the user's attached "TMP Bug.zip" project
2. Open the "SampleScene" Scene
3. Enter Play Mode
4. Observe the Console log
Expected result: "Second call to get preferred values:(146.9, 40.2)" message is printed in the Console log (GetPreferredValues returns correct values)
Actual result:" Second call to get preferred values:(0.0, 0.0)" message is printed in the Console log (GetPreferredValues returns incorrect values)
Reproducible with: 1.5.0-preview.10, 1.5.1 (2018.4.28f1), 2.1.1 (2019.4.13f1), 3.0.1 (2020.1.11f1, 2020.2.0b9, 2021.1.0a2)
Not reproducible with: 1.41, 1.5.0-preview.8 (2018.4.28f1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 1.5.2, 2.1.2, 3.0.2):
Fixed in: 3.0.3, 2.1.3, 1.5.3