Search Issue Tracker
By Design
By Design in 6000.6.X
Votes
0
Found in
6000.0.68f1
6000.2.8f1
6000.3.0b6
6000.4.0a2
6000.5.0a1
6000.6.0a1
Issue ID
UUM-122021
Regression
No
“-“ symbol gets removed from :root Variable name in UI Builder
Reproduction steps:
1. Create a new project
2. Create UI Document (Create > UI Toolkit > UI Document)
3. Double-click newly created Asset to open UI Builder window
4. Click “+” button in the Stylesheets section and select “Create New USS”
5. Click on :root Selector
6. Add a new Variable in the Inspector (Styles > Variables)
7. Change Variable name to “-“, press enter and observe
Actual result: Variable name becomes empty
Expected result: “-“ is displayed as Variable name
Reproducible with: 6000.2.8f1, 6000.3.0b6, 6000.4.0a2
Couldn’t reproduce with: 2021.3.57f1, 2022.3.67f1, 6000.0.60f1 (No :root Selector)
Reproduced on: Ubuntu 24.04, macOS Sequoia 15.4 (M4)
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
- AI Assistant upgrade banner's `Open package Manager` link doesn't work
- Sub-asset UI does not refresh when undoing Renderer Feature add or remove actions in a URP Renderer asset
- Scene flickers with a green tint when using Screen Space Ambient Occlusion and Contact Shadows with raytracing
- Scripts with null Components on GameObjects are not removed when calling GameObjectUtility.RemoveMonoBehavioursWithMissingScript
- Color Curve Key values remain visible after changing Curve type
Resolution Note:
Thank you for reporting a bug to Unity.
'-' is not a valid variable name.
After reviewing the behavior, we've confirmed it aligns with the current design and intended use of the feature. We understand this may differ from your expectations or workflow.
We will close this case as 'As Designed.' If you have feedback on how the feature could better meet your needs, please let us know - we value your input and consider it in future improvements.
Resolution Note (6000.6.X):
Thank you for reporting a bug to Unity.
'-' is not a valid variable name.
After reviewing the behavior, we've confirmed it aligns with the current design and intended use of the feature. We understand this may differ from your expectations or workflow.
We will close this case as 'As Designed.' If you have feedback on how the feature could better meet your needs, please let us know - we value your input and consider it in future improvements.