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
- Palette Settings link to the documentation isn’t working
- Tags & Layers window has inconsistent remove button behaviour between Tags, Sorting Layers, and Rendering Layers when there are no removable items in the list
- "Type Options" and "Node Library" dropdowns do not open when clicked on the title
- Public char variables uneditable in Inspector when project setting "Use IMGUI Default Inspector" is enabled
- IAP Listener component’s list titles go out of bounds when resizing the Inspector window horizontally
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.