【Hololens2-Unity开发】如何升级MRTK2.3.0到2.4.0

MRTK2.4下载地址 https://github.com/microsoft/MixedRealityToolkit-Unity/releases/tag/v2.4.0

1.关闭unity,删除MRTK安装目录下的以下文件,连.meta文件一同删除
MixedRealityToolkit
MixedRealityToolkit.Examples
MixedRealityToolkit.Extensions
MixedRealityToolkit.Providers
MixedRealityToolkit.SDK
MixedRealityToolkit.Services
MixedRealityToolkit.Staging
MixedRealityToolkit.Tools

2.删除项目目录下的Library文件夹

3.打开unity,导入2.4版本MRTK,先导入Foundation

4.关闭unity删除Library文件夹

5.打开unity,删除所有场景内的 MixedRealityToolkit和MixedRealityPlayspace。然后在上边栏的MixedRealityToolkit里点击Add to Scene and Configure

6.执行一次 MixedRealityToolkit -> Utilities -> Update -> Controller Mapping Profiles

7.运行migration tool检查升级

你可能感兴趣的:(hololens,unity)