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

Package: TextMeshPro

-

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

  1. Resolution Note:

    The solution is to move / add the Layout component(s) to the parent Input Field object instead of on the child objects.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.