Search Issue Tracker
Active
Under Consideration for 6000.5.X
Votes
0
Found in
6000.0.66f1
6000.3.8f1
6000.4.0b8
6000.5.0a6
Issue ID
UUM-134017
Regression
No
UI Builder adds non-removable built-in class selectors when adding a custom selector via “Add Selector...”
Steps to reproduce:
- Create a new project using Universal 3D template
- Go to Assets > Create > UI Toolkit > UI Document (UXML)
- Open the created UI Document in UI Builder
- Add any element to Hierarchy, e.g. "Toggle"
- Right-click on it and select "Add Selector..."
- In the selector field, type in any name (e.g. ".test") and click enter
- Click on the previously created element ("Toggle") and observe its Style Class List in Inspector
Actual results: "Toggle" elements has ".unity-toggle" selector in the Style Class List and it is not removable
Expected results: "Toggle" elements has ".test" selector in the Style Class List and it is removable
Reproducible with versions: 6000.0.66f1, 6000.3.8f1, 6000.4.0b8, 6000.5.0a6
Tested on (OS): Ubuntu 24.04, Windows 11
Note:
- Reproduces across multiple UI Toolkit controls, not limited to Toggle
- The built-in class appears to override or replace the custom selector added via “Add Selector...” and cannot be removed from the Style Class List
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “X” button in Editor version search filter is difficult to see when Unity Hub theme is set to Dark
- [Android] The y-value of Input.mouseScrollDelta is positive when scrolling in both directions in the Player
- Crash on TexturesD3D11Base::SetTexture when using DirectX11
- URP _EMISSION keyword removed from Material when Global Illumination is set to None
- Adding “Entities Graphics Stats Drawer (Script)” Component in Inspector spams “InvalidOperationException: using UnityEngine.Input with Input System active” errors in the Console window
Add comment