mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 09:58:02 +08:00
Add FlattenHierarchy to find special case of singletons (#90)
Add FlattenHierarchy to find special case of singletons
This commit is contained in:
1 parent
78bf2fc634
commit
c9aa93a6a4
1 file changed
+2
-2
@@ -163,7 +163,7 @@ namespace UnityExplorer.ObjectExplorer
|
||||
if (!string.IsNullOrEmpty(input))
|
||||
nameFilter = input;
|
||||
|
||||
BindingFlags flags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static;
|
||||
BindingFlags flags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy;
|
||||
|
||||
foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies())
|
||||
{
|
||||
@@ -181,7 +181,7 @@ namespace UnityExplorer.ObjectExplorer
|
||||
}
|
||||
}
|
||||
|
||||
return instances;
|
||||
return instances.Distinct().ToList();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user