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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.