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);
本文介绍了在Unity中,由于UnityEngine.Types.GetType(string,string)方法已弃用,如何更新代码使用System.Reflection.Assembly.Load方法来替代,确保项目的兼容性和稳定性。
1782

被折叠的 条评论
为什么被折叠?



