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
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
- Look Dev errors are spammed when opening a new HDRP project when Look Dev was added to the layout in the previous project
- URP Scene Templates are not editable when first opened from the New Scene dialog
- Look Dev window flickers when resizing the window after docking it
- UI breaks when Multiplayer Center window section divider is moved too far
- Adaptive Performance documentation link leads to outdated package documentation when the documentation hyperlink is pressed in the Project Settings window
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.