Search Issue Tracker
By Design
Votes
0
Found in
2021.3.34f1
2022.3.17f1
2023.2.6f1
2023.3.0b3
6000.1.0a7
6000.2.0a1
6000.3.0a1
6000.4.0a1
7000.0.0a1
Issue ID
UUM-61751
Regression
No
[TextMeshPro] Text's Auto Size property does not respect Size when placed in a Horizontal Layout Group
Reproduction steps:
1. Open the attached “HLG_Bug.zip” project
2. Open the “SampleScene”
3. Expand the “Panel” GameObject (Canvas > Panel)
4. Select any TMP element
5. In the Inspector, check the Auto Size property
Expected result: Text size remains the same size
Actual result: Text size increases and extra padding on the right is visible
Reproducible with: 2021.3.34f1, 2022.3.17f1, 2023.2.6f1, 2023.3.0b3
Reproducible on: Windows 11
Not reproducible on: no other environment tested
Notes:
- The Horizontal Layout Group has the “Control Child Size” property Width checked
- In the Layout Properties of the TMP elements, it is visible that the Preferred Width and Height double in size when the Auto Size property is checked
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
This behavior is by design as the preferred width or height of a text object using Auto Size is the width and height of the text at maximum point size range. This is essentially the preferred unrestricted size of the text.