Search Issue Tracker
Won't Fix
Votes
0
Found in
6000.0.11f1
Issue ID
UUM-76313
Regression
No
UI Toolkit Text Field shifts down when inserting text in the middle of a word
How to reproduce:
1. Open the attached “UITextFieldBug.zip” project
2. Click the Map icon near the Play Button
3. Click “Edit map “Sandbox.dfmap””
4. Open the Triggers editor(The lightning icon)
5. Click “Create Trigger”
6. Right-Click the “New Folder” and select “Add Trigger”
7. Select the “New Trigger” and select “Actions”
8. In the “Task Browser” Window double-click “Log Message”
9. Select “Log message into console”
10. Click the “message” at the bottom of the screen in “Debug Log”
11. Write any text to the Text Field and then insert some text in the middle of any word
Expected result: Text is inserted and is readable
Actual result: Text shifts down and isn’t visible
Reproducible in: 6000.0.11f1
Not reproducible in: 2021.3.41f1, 2022.3.39f1(Couldn’t test both versions because of internal Plugins)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note: Not reproducible in an empty project. Text Field Components “translate” Y Position is set to 7px
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
The project heavily customizes the TextField's default style. The issue seems directly related to the custom implementation of the TextField for which we will not investigate further.
We recommend reverting any USS changes that alter the default TextField behavior, such as #unity-text-input.
If you believe there's a mistake and the issue relates to the UI Toolkit's default implementation, please provide a simpler repro project without modifications to the default styles.