Unity MRTK(一)

安装

Unity的设置

  • 将platform变为UWP
  • import MRTK(Foundation和tools)
  • 在player(在这里也可以设置别的功能权限等)中添加如下图设置(不然可能在Hololens中是二维的)
  • 自己的开发
  • 打包编译
    • 将场景选到Scene IN Build中
    • Architecture选择x64(Hololens 2选择x64,Hololens 1选择x86)(这里是先编译成vs的解决方案,所以选择x64而不是arm64,在vs中在选择arm64)
  • 使用vs2019打开编译成功的sln,修改为release arm64(仿真器好像是x64)。选择对应的设备或仿真器就可以尝试了!

参考

https://docs.unity3d.com/cn/Packages/com.unity.mars@1.0/manual/GettingStarted.html
https://blog.51cto.com/myselfdream/2551530
https://connect.unity.com/p/mrtkzhong-wen-wen-dang-yi-kai-shi-shi-yong-mrtk
https://edu.csdn.net/course/play/28846/401512

posted @ 2020-12-12 10:44  小帆敲代码  阅读(606)  评论(0编辑  收藏  举报