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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
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