Unity Issue Tracker - "TextElement.MeasureTextSize" returns incorrect Text size in a Text Field
Closed
UUM-8490
"TextElement.MeasureTextSize" returns incorrect Text size in a Text Field
Unity: Text (TextCore)
Won't Fix
2023.2.X
2023.1.X
2022.2.X
2022.1.X
2021.3.X
Cancelling since fix will go into 2022.2.
How to reproduce:
1. Open project “MeasureTextSizeIssue.zip”
2. Open Menu > Bug > Search Toolbar
3. Type in the Text Field until text reaches a placeholder
4. Observe the placeholder
Expected result: Text “Press Tab to filter” disappears before Text reaches it
Actual result: Text “Press Tab to filter” disappears after Text reaches it
Reproducible with: 2022.1.8f1, 2022.2.0b1, 2023.1.0a3
Could not test with: 2020.3.36f1, 2021.3.6f1 (Errors after project downgrade)
Reproduced on: macOS 12.4 (Intel)
Note: reproducible when Text font size is 13px and above
Prioritise and Follow this issue
Have a workaround or additional info about this issue?