Interaction Advanced III

Learn how to handle custom input actions in VR, like firing projectiles, using Unity’s XRI Toolkit.

Up till this point in the Interaction series, we’ve discussed utilizing the built-in Interaction events of the XRI Toolkit. However, in this lesson, we’ll learn how to directly handle Input Actions to better customize the gameplay.

XRI Toolkit Interaction workflow

Before we head into the main content of this lesson, let’s first consolidate the Interaction workflow in Unity’s XRI Toolkit.

The Input Action Asset that comes as a part of the XRI Toolkit contains Input Actions defined for standard VR Input. For these Input Actions to be usable, they’re attached to the Input Action Manager (a script usually added to the XR Origin GameObject). The Input Action Manager is responsible for instantiating and enabling all Input Actions inside the Input Action Asset.

Get hands-on with 1200+ tech skills courses.