Search Issue Tracker
Not Reproducible
Not Reproducible in 6000.5.X
Votes
0
Found in
6000.5.0a4
Issue ID
UUM-131713
Regression
Yes
“[UI Toolkit] Could not set value for target of type 'VisualTreeAssetInspector' at path 'VisualTreeAsset': conversion failed…” warnings are thrown when selecting UIDocument GameObject child in Hierarchy with Hierarchy Integration enabled
Reproduction steps:
1. Create a new project
2. Edit > Project Settings… > UI Toolkit
3. Enable Hierarchy Integration
4. Create UI Document GameObject in the Hierarchy
5. Click on UI Document child GameObject
Actual result: “[UI Toolkit] Could not set value for target of type 'VisualTreeAssetInspector' at path 'VisualTreeAsset'...” warnings are thrown
Expected result: No errors or warnings are thrown
Reproducible with: 6000.5.0a4
Not reproducible with: 6000.3.3f1, 6000.4.0b3, 6000.5.0a3
Couldn’t reproduce with: 6000.0.65f1 (No Hierarchy Integration)
Reproduced on: macOS Tahoe 26.2 (M4)
Notes:
- Full warnings when no UI Document Source Asset is attached:
{code:java}
[UI Toolkit] Could not set value for target of type 'VisualTreeAssetInspector' at path 'VisualTreeAsset': conversion failed. (InspectorWindow)
UnityEditor.GUIView:ProcessEvent (UnityEngine.EntityId,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUIView.cs:70) {code}
{code:java}
[UI Toolkit] Could not set value for target of type 'VisualTreeAssetInspector' at path 'VisualTreeAsset': conversion failed. (InspectorWindow)
UnityEditor.RetainedMode:UpdateSchedulers () (at /Users/bokken/build/output/unity/unity/Modules/UIElementsEditor/RetainedMode.cs:43) {code}
- Full warnings when UI Document Source Asset is attached:
{code:java}
[UI Toolkit] Could not set value for target of type 'VisualTreeAssetInspector' at path 'VisualTreeAsset': could not convert from type 'UIDocument' to type 'VisualTreeAsset'. (InspectorWindow)
UnityEditor.GUIView:ProcessEvent (UnityEngine.EntityId,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUIView.cs:70) {code}
{code:java}
[UI Toolkit] Could not set value for target of type 'VisualTreeAssetInspector' at path 'VisualTreeAsset': could not convert from type 'UIDocument' to type 'VisualTreeAsset'. (InspectorWindow)
UnityEditor.RetainedMode:UpdateSchedulers () (at /Users/bokken/build/output/unity/unity/Modules/UIElementsEditor/RetainedMode.cs:43) {code}
- Warnings are being spammed as long as child GameObject is selected
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
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- Module installation fails with "Download failed: Validation Failed" errors when using beta.2 Hub version
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Shader Graph Category dropdown cannot be expanded/collapsed when clicking on the text
- Different text alignment in the column header in Entities "System" window
Resolution Note:
The fix for this already landed recently. Should be fixed on latest trunk.
Resolution Note (6000.5.X):
The fix for this already landed recently. Should be fixed on latest trunk.