Unity版本升级问题总结

Unity版本升级问题总结

1.优先解决与当前版本差异性过大的插件,升级2D Animation至适配最新版,删除以前的版本,然后重新加载项目以解决IK对Animation和Common的冲突。
2.修复与版本冲突的API ;修复原则1.引用少的,不影响程序的暂时先注释2.引用较多的,重写应用的方法,参照2018的方法输出。
3.修复运行过程中的bug;1.MagicText升级到2020版本后的bug定位与修复2.traveller下修复skin必要的canvasRenderer组件3.AstarPath中OnDrawGizmos方法绘制网格与scene面板冲突,注释掉报错的方法函数。
4.ToLua 执行Generate ALL失败,2020下某些函数方法执行冲突,不被允许。
问题1
问题点:
2D Animation1.0.4的版本不满足Unity2020.3.12

解决方案:
过时的插件包需要更新,下载最新的2D Animation Package

问题2
问题点:
error CS0234: The type or namespace name ‘Common’ does not exist in the namespace ‘UnityEngine.U2D’ (are you missing an assembly reference?)IK对Animation和Common的冲突

解决方案:
重启工程!!!

问题3
问题点:
error CS0034: Operator ‘+=’ is ambiguous on operands of type ‘Vector4’ and ‘Vector2’ 2020API和2018API冲突

解决方案:
按照2020的API方法修改并替换为Vector4

问题4
问题点:
error CS0619: ‘MovieTexture’ is obsolete: ‘MovieTexture is removed. Use VideoPlayer instead.’方法过时

猜你喜欢

转载自blog.csdn.net/qq_40286399/article/details/126015350