Search Issue Tracker
By Design
Votes
0
Found in
2021.3.44f1
2022.3.49f1
6000.0.22f1
7000.0.0a4
Issue ID
UUM-83283
Regression
No
TMP text with Auto Size overflows when using the WD% property
Reproduction steps:
1. Open the attached “TMP Autosize issues.zip” project
2. Open the “Assets/Scenes/SampleScene” Scene
3. In the Hierarchy Window, expand the Canvas GameObject
4. Select the "Text (TMP)" GameObject
5. In the Inspector continue to add zeroes to the text
6. Observe the Game view
Expected: The text is auto-sized to fit the Panel
Actual result: The text sometimes overflows the Panel when specific amount of characters is used
Reproducible with: 2021.3.44f1, 2022.3.49f1, 6000.0.22f1
Reproduced on: macOS 14.6.1 (Intel), Windows 11
Not reproducible on: No other environment tested
Notes:
- It only reproduces when using the WD% property
- Starts reproducing when around 30 characters are entered
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
This is not a bug but rather by design.
Increasing the protected int m_AutoSizeMaxIterationCount = 100; to 200 will provide the desired result but at the cost of more iterations where in the provided case, it requires about 110 iteration due to the large number of digits.