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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
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.