- Unity Virtual Reality Projects
- Jonathan Linowes
- 206字
- 2021-06-25 21:58:29
Setting your XR SDK
When your project is built with Virtual Reality Supported enabled in Player Settings, it renders stereoscopic camera views and runs on an HMD:
- Go into Player Settings (Edit | Project Settings | Player).
- In the Inspector window, find the XR Settings at the bottom and check the Virtual Reality Supported checkbox.
- Choose the Virtual Reality SDK you will require for your target device. Refer to the previous table.
Depending on the target platform you are using, the Virtual Reality SDKs available in your Unity installation will vary. If your target VR is shown, then you're good to go. You can add others by pressing the ( + ) button in the list, and remove ones pressing the ( - ) button.
For example, the following screenshot shows the Virtual Reality SDKs selected for the Standalone platform. With Virtual Reality Supported enabled, the app will use Oculus SDK if it can. If the app cannot initialize the Oculus SDK at runtime, it will then try the OpenVR SDK.
At this point, by pressing Play in the Unity Editor you may be able to preview your scene in VR. Different platforms support Play mode in different ways. Some do not support Editor previews at all.
- 程序員面試筆試寶典(第3版)
- Building Modern Web Applications Using Angular
- Learn React with TypeScript 3
- 計算機應用基礎實踐教程
- Linux C編程:一站式學習
- Node.js:來一打 C++ 擴展
- Mastering C++ Multithreading
- Practical Microservices
- ROS機器人編程實戰
- Microsoft HoloLens By Example
- Ubuntu Server Cookbook
- 大話代碼架構:項目實戰版
- Mastering JavaScript Promises
- Leaflet.js Essentials
- 開源網絡地圖可視化:基于Leaflet的在線地圖開發