XR Step-by-Step 2024! Meta Quest: Add Interactable Scripts to any Game Object!

Virtual Reality (VR), Augmented Reality (AR), Mixed Reality (MR) and now Spatial Computing all come together as XR or “Extended-Reality”.
You’re in the right place at the right time to build something amazing in XR!

In this blog post series we will focus on Meta Quest!

Check out other blog articles in this (and other) series!
Quick links to Lance’s latest XR Step-by-Step blog articles by device

Previously we showed how easy it was using Meta Building Blocks to create new example objects that you could grab, poke and more!

But, what if you already have a game object? And you wanted to make that grabbable? or distance grabbable?

With a few clicks we will add these interactable scripts to any object!

Let’s create a 3D Sphere object that’ll have no intractability — and add both the Grab Interactor and the Distance Grab to it.

Note — you could use any asset in fact, such as those you download from the Unity Asset Store.
Grab a sword, make is so you can wield it! Grab a shield and defend yourself!

  1. (Hierarchy) Right-Click
  2. Click 3D Object -> 3. Sphere
  1. (Hierarchy) Click on the Sphere
  2. (Inspector) The Sphere is really large by default, change the Scale to 0.1, 0.1, 0.1 for X, Y, Z
  3. (Project) Drag Purple material onto the Sphere
  4. (Scene) Click on your Sphere -> Press the W key — this give you the ability to drag the Sphere around (in essence changing the Position values) move it somewhere you can reach it
  1. (Hierarchy) Right-Click the Sphere
  2. Click Interaction SDK
  3. Click Add Grab Interaction
  1. (Grab Wizard) Click Fix All
  2. (Grab Wizard) Click Create
  • You’ll see that it added the ISDK_HandGrabinteraction object under your Sphere and auto-configured all of the options that were in the Grab Wizard based on your choices.
  • Wow – this is a lot easier than doing this manually!
  1. (Hierarchy) Right-Click the Sphere
  2. Click Interaction SDK
  3. Click Add Distance Grab Interaction
  1. (Distance Grab Wizard) Click Fix All
  2. (Distance Grab Wizard) Click Create
  • Now you can see we added a ISDK_DistanceHandGrabinteraction too!

Run it and try!

Leave a Reply