Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.0.0-preview.9
Issue ID
1292211
Regression
No
[UI Toolkit] Elements are added with the same name under hierarchy in the UI Builder window
All newly added Elements(Button, Label, Toggle, etc.) share the exacts the same name under Hierarchy in the UI Builder window, Refer to the attached video
Steps to repro:
1. Create a new project
2. Window > UI Toolkit > UI Builder
3. Library > Button > right-click > Add
4. Repeat step 3 twice
Actual Result:
Elements(Button, Label, Toggle, etc.) are added with the same name
Expected Result:
Elements(Button, Label, Toggle, etc.) should be created with a different name as Button, Button(1), Button(2), Button(3), and so on
Note:
UI Toolkit package introduced in the Unity 2020.1.0b12
UI toolkit is core package onwards 2021.1.0a5
Reproducible in:
2021.1.0a6, 2020.2.0b11, 2020.1.12f1, 2020.1.0b12with package version 1.0.0-preview.9, 1.0.0-preview.1, 0.11.2-preview
Environment:
Occurring on Windows 10 & macOS 10.15.
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
This is not a bug. Elements, when created, do not have specific names. The Builder hierarchy displays elements by their name, if any; otherwise, the element type name is displayed (in this example "Button") for each element since no specific name was given. To provide a specific name for an element, use the Name attribute in the Builder's Inspector.