diff --git a/Plugins/AssetUsageDetector/Editor/SearchResultTreeView.cs b/Plugins/AssetUsageDetector/Editor/SearchResultTreeView.cs index 833c28a..f2cf6d3 100644 --- a/Plugins/AssetUsageDetector/Editor/SearchResultTreeView.cs +++ b/Plugins/AssetUsageDetector/Editor/SearchResultTreeView.cs @@ -966,6 +966,8 @@ namespace AssetUsageDetectorNamespace for( int i = 0; i < item.children.Count; i++ ) shouldExpand |= GetMainReferenceIdsRecursive( item.children[i], ids ); } + else + shouldExpand = true; // No main reference is encountered in this branch; expand the whole branch if( shouldExpand ) ids.Add( item.id );