unity版本
unity2019.3.6
描述
本项目演示了如何将VRTK场景与Pico VR SDK集成。如下图所示,在Assets-VRTK中已经使用PicoSDKv2.8.5配置了七个场景,供参考。
备注
请记住,指南必须按这个顺序执行。如果没有,那么集成就可能不像预期的那样。应该已经安装了VRTK,您需要访问该文件夹中的文件。它在Unity2019.3.6f1中进行了测试,并确认在该版本中可以工作。并不是所有的特性都可以实现。这些特性可以在提供的VRTK演示场景中找到。另外,一定要事先备份(或两个)。
SDK推荐配置
- 对于Color Space,Gamma和Linear都已支持。选择Gamma,则Blit Type里Never或Always都可选择。
安装
(https://github.com/picoxr/VRTK-Support pico文件夹和prefab预制体下载地址)
- 导入Pico SDK并Apply推荐的设置。设置Android平台为构建目标。Import Pico SDK and apply recommended settings. This will also set the build target to Android.
- 将“Pico”文件夹复制到您的项目VRTK->Source->SDK文件夹中。Copy the "Pico" folder (located in the SDK folder) into your projects VRTK->Source->SDK folder.
- 将“PicoVR.prefab”文件复制到您的项目预置文件夹中。Copy the "PicoVR.prefab" file into your projects prefab folder.
- 关闭unity。Close Unity.
- 当Unituy关闭的时候,将VRTK_SDKManager.cs文件中的“VRTK_SDKManager.cs”文件替换为现有文件(以便让VRTK检测到Pico耳机)!Replace the "VRTK_SDKManager.cs" file in the VRTK -> Source -> Scripts -> Utilities -> SDK folder with the existing file (in order to let VRTK detect the Pico headset) while Unity is closed!
- 重新启动unity项目。Reopen the Unity project.
- 将PicoVR预制件拖到场景中[VRTK_SDKManager]->[VRTK_SDKSetups]。 Drag PicoVR prefab into your scenes [VRTK_SDKManager] -> [VRTK_SDKSetups].
- 选择[VRTK_SDKManager]并将您刚才放置的PicoVR游戏对象添加到设置列表中。Select [VRTK_SDKManager] and add the PicoVR game object that you just placed into the setups list.
- 单击[VRTK_SDKManager]中的“删除所有符号”按钮。Click on the “Remove All Symbols" button in the [VRTK_SDKManager].
- 取消勾选“自动管理器”,单击“立即管理”按钮,然后再次勾选“自动管理”。Uncheck “Auto Manager”, click on the “Manage Now" button and check the “Auto Manage" once again.
- 转到“编辑”>“项目设置”>“播放器”>“XR设置”,并添加“无”作为VR设备的选项。Go to Edit > Project settings > Player > XR Settings and add “None” as an option for VR devices.
- 连接您正在处理的特定应用程序所需的所有组件(如果有的话)。Hook up all required components for the specific application you are working on (if there are any.)
- 就完了!You're done!