Search Issue Tracker
Won't Fix
Votes
1
Found in
2021.3.41f1
2022.3.39f1
Issue ID
UUM-76483
Regression
No
"preferredHeight" returned value is not always correct when Japanese characters are used in text
How to reproduce:
1. Open the “Test.zip“ project
2. Open the “SampleScene“
3. Enter Play Mode
4. Obsere the Game view
Expected result: Both panel heights are the same
Actual result: The upper panel is shorter
Reproducible in: 2021.3.41f1, 2022.3.39f1
Could not test in: 6000.0.12f1 (the text is automatically smaller with the same font size)
Reproduced on: Windows 11 Pro (23H2), macOS 13.6.7 (M2)
Not reproduced on: No other environment tested
Notes:
- Certain Japanese characters are wider than others, which could affect the “preferredHeight”
- If in the top panel the last character (“し“) is added one or more times, the “preferredHeight“ returns the correct value
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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
This is already fix in Unity 6+ and in the latest version of Text Mesh Pro. I would suggest upgrading either the editor or the package.