Fix scripting type search regression from 26d4ebd3d5

This commit is contained in:
Wojtek Figat
2022-05-06 17:37:07 +02:00
parent 2d27e0997f
commit 4cedd0f30c

View File

@@ -332,6 +332,17 @@ namespace FlaxEditor.Scripting
if (type != null)
return new ScriptType(type);
}
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
for (int i = 0; i < assemblies.Length; i++)
{
var assembly = assemblies[i];
if (assembly != null)
{
var type = assembly.GetType(typeName);
if (type != null)
return new ScriptType(type);
}
}
// Custom types
foreach (var customTypesInfo in CustomTypes)