- Unity 2020 Virtual Reality Projects
- Jonathan Linowes
- 524字
- 2021-06-11 18:54:54
Choosing your target VR platforms and toolkits
While much of your development will focus on the artwork, behaviors of game objects, and interactive game mechanics of your application, from the very beginning of your project, you should also identifywhich platforms and devices you are targeting. In ordinary Unity projects, it's often sufficient to simply choose the Build Settings target platform (for example, Android or Windows) and then configure Player Settings for build runtime options. But for VR, there's more. You need to manage the VR plugins you will need and use additional toolkit(s) for developing the project. Generally, your Unity VR project will need to include the following:
- Select a Target Platform for your builds (for example, Android versus Standalone/Windows).
- Install an XR Plugin that drives the VR devices.
- Within your scene, you will include a VR-enabled camera rig for tracking head and hand locations in 3D space.
- Using other components provided with Unity's XR Interaction Toolkit for handling interaction with game objects and locomotion in your scenes.
- Alternatively, you may choose to include device-specific toolkits, often provided by device manufacturers that have been tuned to their specific devices and often include a suite of prefabs, components, and shaders. These higher-level add-ons help you create interactive, responsive, and comfortable VR experiences tailored to a specific platform.
Unity has a growing library of built-in classes and installable packages to support VR (or rather, XR including augmented reality devices), including stereo rendering, input tracking, user interactions, and audio spatializers. Some features are limited by specific platform capabilities, but generally, they're designed to be device-independent.
I will walk you through the details of installing and configuring your project in this chapter. If you are not sure which platform, XR plugin, and device toolkit to include in your project, consult the following table, which shows many of the major consumer VR devices available today and the options for the development platform, target device platform, VR runtime, XR plugin, and optional device toolkit. The first table identifies the plugins provided and supported directly by Unity:

The following table shows plugins that have been announced but are not currently available (at the time this was written):

Note that Valve's OpenVR supports multiple VR devices, although OpenVR with Oculus or immersive Windows MR devices also require their corresponding runtime app be running in the background (Oculus Desktop or Mixed Reality Portal, respectively). Also note that, as of October 2019, Google discontinued Daydream and open-sourced the Cardboard SDK. As of December 2020, Oculus is sunsetting the Oculus Go and will stop accepting new applications in its store.
So, let's get started by enabling VR in the project's scene.
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- 極簡(jiǎn)算法史:從數(shù)學(xué)到機(jī)器的故事
- Java Web開(kāi)發(fā)學(xué)習(xí)手冊(cè)
- Apache ZooKeeper Essentials
- Spring Boot開(kāi)發(fā)與測(cè)試實(shí)戰(zhàn)
- BeagleBone Media Center
- Responsive Web Design with HTML5 and CSS3
- Flash CS6中文版應(yīng)用教程(第三版)
- bbPress Complete
- Mastering Android Development with Kotlin
- ASP.NET程序開(kāi)發(fā)范例寶典
- 寫(xiě)給大家看的Midjourney設(shè)計(jì)書(shū)
- 物聯(lián)網(wǎng)系統(tǒng)架構(gòu)設(shè)計(jì)與邊緣計(jì)算(原書(shū)第2版)
- Practical Maya Programming with Python
- Software Development on the SAP HANA Platform