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;
}
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: