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

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)

  1. 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.

  2. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.