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
- Build fails when building a project containing an 18+ dimension array with IL2CPP
- [Android][Sentis] Human poses are not detected when using the BlazePose model
- Sprite Editor Outline Tool Overlay is not displayed when no Sprite is selected
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
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.