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
- Scene view audio toggle doesn't work after disabling and enabling audio source component with audio random container
- Pitch changes while paused messes up scheduling of the audio random container
- Crash on detail::ComputeShaderSnippetKey when entering the Play mode
- Unable to interact with Material Inspector window when creating a new Material and renaming it
- Shadow artifact is cast onto GameObjects in the Scene view when the Scene view lighting is 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.