Reproduction steps:
1. Open the attached “1386658.zip” project
2. Open the “SampleScene” Scene
3. Enter Play Mode
4. Type a few characters into the Text Field
Expected result: Caret is always visible when typing
Actual result: Caret is either always invisible or disappears and appears while writing
Reproduced with: 1.0.0-preview.18 (2021.1.28f1), 1.0.0 (2021.2.7f1, 2022.1.0b2)
Could not test with: 2019.4.30f1 (UI Builder is not introduced yet), 2020.3.25f1 (UI Document component is blank in the Inspector)
Notes:
- The caret seems to change the width every few characters
Workaround:
- In Panel Settings decrease the Reference DPI until the caret is seen
Related threads:
https://forum.unity.com/threads/blocking-bug-carets-not-working-in-2022-1.1311396/
https://forum.unity.com/threads/changing-caret-style-inside-a-textfield.1014244/