Search Issue Tracker
By Design
Votes
0
Found in
6000.0.30f1
6000.1.0a6
Issue ID
UUM-89097
Regression
No
Text field max length is -1 by default
*Steps to reproduce:*
# Create a new URP project.
# Assets > Create > UI Toolkit > UI Document, open this in UI Builder.
# Drag component Text into Hierarchy, and view it in the UI Builder Inspector. Note the Max Length Attribute.
*Actual results:* Max length is -1, but you can type in the field and the field will show text.
*Expected results:* Max length is greater than 0 and a feasible number for a text field. Note in U6 versions, numeric fields have their max length set to 1000.
*Reproducible with versions:* 6000.1.0a6, 6000.0.30f1, 2022.3.53f1, 2021.3.45f1
*Tested on (OS):* MacOS 12.7.6
*Notes:*
* Have not thoroughly regression tested this as it seems to be a new feature. Please contact the ticket reporter if regression testing will be useful.
* The text field seemed to fix itself after being reselected, but the numeric fields did not.
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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Resolution Note:
As described here: https://docs.unity3d.com/ScriptReference/UIElements.TextField-ctor.html
When max length is -1, it means there's no limit.