mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Use ReflectionUtility.AllTypes for type autocompleter, bump UniverseLib
This commit is contained in:
1 parent
df8522963e
commit
bdf08f014f
3 files changed
+4
-5
No files matched your search
@@ -65,9 +65,8 @@ namespace UnityExplorer.UI.Widgets.AutoComplete
|
||||
allowedTypes = ReflectionUtility.GetImplementationsOf(BaseType, allowAbstract, allowEnum, false);
|
||||
else
|
||||
{
|
||||
// TODO: Use direct reference. Will make AllTypes public in next release of UniverseLib
|
||||
allowedTypes = new();
|
||||
foreach (var entry in (SortedDictionary<string, Type>)AccessTools.Field(typeof(ReflectionUtility), "AllTypes").GetValue(null))
|
||||
foreach (var entry in ReflectionUtility.AllTypes))
|
||||
allowedTypes.Add(entry.Value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user