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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
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.