Making the world interactable
Getting started with XR Grab Interactables in Unity
This article is part of a series in which we build a mixed reality app from scratch. See the previous part here.
Today we’re going to make our globe interactable! When we’re finished things will look like this:
Let’s get started.
Importing our models
First let’s import two models that we created in an earlier article: Ocean and India. Adjust the import settings for each model to Bake Axis Conversion:
This will ensure the models face the same way as they did in Blender. If interested, you can read more about our coordinate setup here.
Setting the scene for XR
Let’s create a new empty scene and set a few things up.
- Add the MRInteractionSetup prefab. Expand this, and deactivate the Goal Manager and Object Spawner. We might make use of these later.
- Add a Directional Light. In the inspector set Shadow Type to No Shadows. This will help with performance.