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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.