Steps to reproduce:
- Create a new project
- Create and instantiate a new script in the Hierarchy
- Inside the script, declare a public VisualElementReference object
- Save and focus on the Editor
- Create a new UI Document "Test.uxml"
- Add a VisualElement to the Hierarchy in UI Builder and save the changes
- Open the VisualElementReference object picker in the Inspector and observe
Actual results: The "Test" element is at the top as the root of all the other elements
Expected results: Either:
- NewUXMLTemplate is not available, or
- "Test" is a child of NewUXMLTemplate and the parent of all the other VisualElements
Reproducible with versions: 6000.6.0a5
Can’t test with versions: 6000.0.75f1, 6000.3.15f1, 6000.4.7f1, 6000.5.0b8, 6000.6.0a4 (No hierarchical structure in Object Picker window)
Tested on (OS): Windows 11 Pro (25H2)
Notes:
- This can be confusing, as there is no reference to "NewUXMLTemplate" inside the UXML file if it is renamed