Unity Issue Tracker - SerializedProperty.Next(true) enters an infinite parent-child loop when iterating non-empty UXML assets
Open
UUM-144349
SerializedProperty.Next(true) enters an infinite parent-child loop when iterating non-empty UXML assets
Unity: Serialization
Open
6.6.X
In Progress
6.5.X
6.3.X
6000.3.0a1 onwards
Won't Fix
6.4.X
The fix will land in 6.3 and 6.5
Steps to reproduce:
Open the “IN-144714” project
Open the file Packages/asset-relations-viewer/NodeDependencyLookup/Editor/Caches/AssetDependencyCache/AssetTraverser/AssetSerializedPropertyTraverser.cs in Visual Studio
Add a breakpoint on line 85
Attach the Unity Debugger in Visual Studio by clicking Debug > Attach Unity Debugger
In the Editor Project tab, right-click on PerSplineFileVisualElement.uxml and select Asset Relations Viewer > Open
Go to Visual Studio again and wait until the breakpoint is hit
Press F5 a few times and observe the value of property.propertyPath
Actual result: UXML asset loops recursively between the parent and child property, creating an infinite loop and grow’s path line
Expected result: Properties iterated through without looping