Search Issue Tracker
Fixed
Fixed in 6000.0.59f1, 6000.2.7f1, 6000.3.0b4, 6000.4.0a1
Votes
1
Found in
6000.0.57f1
6000.2.4f1
6000.3.0b1
6000.4.0a1
Issue ID
UUM-116909
Regression
Yes
"ArgumentOutOfRangeException" error is thrown when trying to delete letters from an RTL TextField when using the Advanced Text Generator
How to reproduce:
1. Create and open a new project
2. Open Edit → Project Settings → UI Toolkit and enable the “Advanced Text Generator“
3. Create a UI Document in the Project tab and open it
4. Add a TextField Control to the Hierarchy and Enable “RTL” Language Direction attribute and “Advanced“ in Text → Text Generator Type attribute
5. Save the changes
6. Create a new UI Toolkit → UI Document GameObject in the Scene and attach the UI Document to the required field in the Inspector
7. Enter Play Mode
8. Type anything into the TextField, navigate to the middle of the string, then try to delete any character (either with the delete or backspace buttons)
9. Observe the Console
Expected result: Letters are deleted, no Console errors are thrown
Actual result: “ArgumentOutOfRangeException: Count cannot be less than zero“ is thrown in the Console, and letters are not deleted
Reproducible in: 6000.0.57f1, 6000.2.4f1, 6000.3.0b1
Not reproducible in: 6000.0.56f1
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested
Notes:
- If multiple letters are selected, they can be deleted
- If the caret is at the beginning of the string, it will not delete the letters, but it will not throw errors either
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
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
- Unity Version Control server textfield’s text overlaps with the dropdown triangle button in the Explore repositories window when an organization with a long name is selected
Resolution Note (fix version 6000.4.0a1):
Fixed out of range issue when deleting with RTL text
Resolution Note (fix version 6000.3.0b4):
Fixed out of range issue when deleting with RTL text
Resolution Note (fix version 6000.2.7f1):
Fixed out of range issue when deleting with RTL text
Resolution Note (fix version 6000.0.59f1):
Fixed out of range issue when deleting with RTL text