mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
Removed unnecessary editor precompile tags
This commit is contained in:
parent
8ae30f6622
commit
26f37de702
@ -75,13 +75,9 @@ namespace XNodeEditor {
|
|||||||
List<System.Type> types = new List<System.Type>();
|
List<System.Type> types = new List<System.Type>();
|
||||||
System.Reflection.Assembly[] assemblies = System.AppDomain.CurrentDomain.GetAssemblies();
|
System.Reflection.Assembly[] assemblies = System.AppDomain.CurrentDomain.GetAssemblies();
|
||||||
foreach (Assembly assembly in assemblies) {
|
foreach (Assembly assembly in assemblies) {
|
||||||
#if UNITY_EDITOR
|
|
||||||
try {
|
try {
|
||||||
#endif
|
|
||||||
types.AddRange(assembly.GetTypes().Where(t => !t.IsAbstract && baseType.IsAssignableFrom(t)).ToArray());
|
types.AddRange(assembly.GetTypes().Where(t => !t.IsAbstract && baseType.IsAssignableFrom(t)).ToArray());
|
||||||
#if UNITY_EDITOR
|
|
||||||
} catch(ReflectionTypeLoadException) {}
|
} catch(ReflectionTypeLoadException) {}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return types.ToArray();
|
return types.ToArray();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user