I am currently using:
public static Type FindType(string qualifiedTypeName)
{
Type t = Type.GetType(qualifiedTypeName);
if (t != null)
{
return t;
}
else
{
foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies())
{
t = asm.GetType(qualifiedTypeName);
if (t != null)
return t;
}
return null;
}
kudos to @Alistar from this post : Type.GetType not working
However, even this doesnt work when it comes to a list of Vector3s from UnityEngine.
I know that you can include the relevant assembly also by adding ", UnityEngine" at the end, but it doesnt work.
Any ideas?
Aucun commentaire:
Enregistrer un commentaire