How to reproduce:
1. Open the “TMPInputFieldViewBug.zip“ project
2. Open the “SampleScene”
3. Enter Play Mode
4. Click on the InputField in the Game view, and type a long string (for the view to scroll horizontally until at least the first four characters are not visible)
5. Press Enter (to trigger OnEndEdit)
6. Observe the InputField in the Game view
Expected result: The word “rule” is visible in the InputField
Actual result: The InputField is completely white
Reproducible in: 3.0.9 (2023.2.0a1), 6000.0.57f1, 6000.2.4f1, 6000.3.0b1
Couldn’t test in: 2023.1.0a1 (unable to see string inside the InputField)
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested
Workaround: Click on the InputField again (it will refresh the InputField view, and the string “rule” will be displayed)
Notes:
- The bug is not reproducible on legacy InputField
- TextMeshPro was integrated into the uGUI package in 2023.2.0a14. Therefore, before that, TextMeshPro was a separate package