Book Image

XR Development with Unity

By : Anna Braun, Raffael Rizzo
2 (1)
Book Image

XR Development with Unity

2 (1)
By: Anna Braun, Raffael Rizzo

Overview of this book

The drastic surge in the demand for XR development has led to an imminent need for comprehensive resources, learning material, and overall know-how in this area. This one-stop resource will ensure that professionals venturing into XR development can access all XR-related techniques to build appealing XR applications, without relying on Google every step of the way. This book is your guide to developing XR applications with Unity 2021.3 or later versions, helping you to create VR, AR, and MR experiences of increasing complexity. The chapters cover the entire XR application development process from setting up an interactive XR scene using the XR Interaction Toolkit or AR Foundation, adding physics, animations, continuous movement, teleportation, sound effects, and visual effects, to testing and deploying to VR headsets, simulators, smartphones, and tablets. Additionally, this XR book takes you on a journey from the basics of Unity and C# to advanced techniques such as building multiplayer applications and incorporating hand- and gaze-tracking capabilities. By the end of this book, you'll be fully equipped to create cutting-edge XR projects for engaging individual, academic, and industrial use cases that captivate your audience.
Table of Contents (15 chapters)
Free Chapter
Part 1 – Understanding the Basics of XR and Unity
Part 2 – Interactive XR Applications with Custom Logic, Animations, Physics, Sound, and Visual Effects
Part 3 – Advanced XR Techniques: Hand-Tracking, Gaze-Tracking, and Multiplayer Capabilities

Setting up a VR project in Unity and the XR Interaction Toolkit

In the following sections, you will acquire the knowledge to create a Unity project specifically tailored for VR development. Furthermore, you will become proficient in the installation and configuration of two highly significant plugins that are pivotal to VR development within Unity: XR Plug-in Management and the XR Interaction Toolkit.

Creating a project in Unity for VR development

Let’s begin by creating a brand-new project in the latest version of Unity. To ensure compatibility with different devices and platforms, it is crucial to enable both Android and Windows/Mac/Linux build support in Unity. The Android build support allows you to test your applications on standalone headsets such as the Meta Quest series in standalone mode, whereas the Windows/Mac/Linux build support is required for PC-based VR headsets or standalone headsets that are to be used in PC mode. If you haven’t downloaded these...