unity3d:Types.GetType 升级为System.Reflection.Assembly.Load

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/luoyikun/article/details/82865925
var type = Types.GetType(TypeName, "Assembly-CSharp");

5.3.8代码在2018中报错

UnityEngine.Types.GetType(string, string)' is obsolete: `This was an internal method which is no longer used'

改为

var type = System.Reflection.Assembly.Load("Assembly-CSharp").GetType(TypeName);

猜你喜欢

转载自blog.csdn.net/luoyikun/article/details/82865925