Make AllTypes protected, force using GetTypeByName

This commit is contained in:
Sinai
2021-06-07 19:26:46 +10:00
parent 16335c1bc4
commit a72877befb
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ namespace UnityExplorer.UI.Widgets.AutoComplete
}
// Check for exact match first
if (ReflectionUtility.AllTypes.TryGetValue(value, out Type t) && allowedTypes.Contains(t))
if (ReflectionUtility.GetTypeByName(value) is Type t && allowedTypes.Contains(t))
AddSuggestion(t);
foreach (var entry in allowedTypes)