unity3d-class-type-reference
unity3d-class-type-reference copied to clipboard
ReflectionTypeLoadException
Though rare, if your working with a library that was built against something other than say 3.5 you'll see this exception thrown which will prevent the drop down list from populating anything.
Quick solution is just to add the following to the FilterTypes method:
Type[] typeArray = null;
try
{
typeArray = assembly.GetTypes();
}
catch(System.Reflection.ReflectionTypeLoadException e)
{
Debug.Log("Types could not be extracted from assembly:" + e.Message);
}
if (typeArray == null)
{
return;
}
Hi, thanks for the feedback. It was fixed here: https://github.com/SolidAlloy/ClassTypeReference-for-Unity