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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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.