Skip to content

Commit 58bb369

Browse files
author
David Kline
authored
Merge pull request #8801 from prefrontalcortex/fix-ReflectionTypeLoadException
fix ReflectionTypeLoadException when opening the Receivers dropdown
2 parents 55b9641 + 6a51656 commit 58bb369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MRTK/Core/Extensions/TypeExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static List<Type> GetAllSubClassesOf(this Type rootType, Assembly[] searc
2727

2828
Parallel.ForEach(searchAssemblies, (assembly) =>
2929
{
30-
Parallel.ForEach(assembly.GetTypes(), (type) =>
30+
Parallel.ForEach(assembly.GetLoadableTypes(), (type) =>
3131
{
3232
if (type != null && type.IsClass && !type.IsAbstract && type.IsSubclassOf(rootType))
3333
{

0 commit comments

Comments
 (0)