Fix scripting type search regression from 26d4ebd3d5
This commit is contained in:
@@ -332,6 +332,17 @@ namespace FlaxEditor.Scripting
|
|||||||
if (type != null)
|
if (type != null)
|
||||||
return new ScriptType(type);
|
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
|
// Custom types
|
||||||
foreach (var customTypesInfo in CustomTypes)
|
foreach (var customTypesInfo in CustomTypes)
|
||||||
|
|||||||
Reference in New Issue
Block a user