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
- Long Property names are not truncated in the Add Property dropdown in the Animation window when the Long Property name does not fit
- [iOS] High CPU load when device keyboard is open
- Selected Animation clip in the Animation window changes when the Domain Reload is triggered
- Animation window scrollbar keeps resetting when the scrollbar width is changed after adding an event
- LocalizationSettings.InitializationOperation hangs when re-entering Play Mode with Domain Reload disabled
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.