Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
3.0.1
Issue ID
1275289
Regression
No
Errors are thrown in the Console log when a Layout Group Component is added to the TMP Input Field's Text Area GameObject
How to reproduce:
1. Open the attached "1275289_TMPInputfield.zip" project
2. Open the "SampleScene" Scene
3. Enter Play Mode
4. Enter some text in the Input Field in the Game view
5. Observe the Console log
Expected result: No errors messages are thrown in the Console log
Actual result: "Trying to add Caret (TMPro.TMP_SelectionCaret) for graphic rebuild while we are already inside a graphic rebuild loop. This is not supported." error messages are spammed in the Console log
Reproducible with: 1.5.1 (2018.4.28f1), 2.1.1 (2019.4.12f1), 3.0.1 (2020.1.10f1, 2020.2.0b8, 2021.1.0a1)
Note:
- The issue is not reproducible if the TMP Input Field's Text Area GameObject doesn't have a Vertical/Horizontal Layout Group Component added
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
The solution is to move / add the Layout component(s) to the parent Input Field object instead of on the child objects.