在ET8.1中升级步骤如下:
1、unity编辑器中,包管理中先移除原本的低版本MemoryPack
2、unity编辑器中,包管理中安装NuGetForUnity,Git地址https://github.com/GlitchEnzo/NuGetForUnity.git?path=/src/NuGetForUnity
3、unity编辑器中,通过NuGetForUnity菜单,在其中安装MemoryPack.Core.1.21.4、MemoryPack.Generator.1.21.4
4、unity编辑器中,将生成的MemoryPack.Core.1.21.4、MemoryPack.Generator.1.21.4、System.Collections.Immutable.6.0.0三个目录移动到Plugins目录下,并删除其中无用文件
5、unity编辑器中,包管理中移除NuGetForUnity
6、unity编辑器中,包管理中安装新版本MemoryPack,Git地址https://github.com/Cysharp/MemoryPack.git?path=src/MemoryPack.Unity/Assets/MemoryPack.Unity
7、后端的升级,在vs2022或rider中,通过NuGet包管理,升级MemoryPack到1.2.4
8、最后在unity编辑器中,编辑Unity.Core.asmdef、Unity.Loader.asmdef、Unity.ThirdParty.asmdef、Unity.Hotfix.asmdef、Unity.HotfixView.asmdef、Unity.Model.asmdef,移除其中对MemoryPack老版本的引用
升级后编译通过,使用也无问题,但是心里不安,大家都来试试吧,有问题记得回馈