Tutorials Unity

Unity VRTK Teleport & UI Pointer – Oculus

Set up your scene for teleport using VRTK with a Gear VR or Oculus Go controller. This tutorial uses an OVR rig with tracked remote, straight pointer renderer & UI pointer scripts.

Assumptions: You have an Oculus Go or Samsung Gear VR with a compatible Android mobile device & controller. You already have Unity 2017.4.0f1 & VRTK v3.3.0 installed, note that Unity 2018 may not be compatible.

Are you looking to build for Oculus Quest? See this post instead: Vectorworks to Unity for Quest VR.

Add VRTK Rig & OVR 


Follow these steps to set up your camera rig using VRTK v3.3.0 and Oculus Utilities.


Define Pointer Functionality


Click on the GearVRControllerModel/OculusGoController Model parent object and add the following components:

A. VRTK_PlayArea Cursor (Script)

B. VRTK_StraightPointer Renderer (Script)

Change Tracer & Cursor Visibility to “Always On”

C. VRTK_Pointer (Script)

Change the Selection Button to “Button One Press” for Gear VR or “Trigger Press” for Oculus Go.

Enable “Hold Button to Activate”

Enable “Interact with Objects”

Enable Teleport

D. VRTK_ControllerEvents (Script)

E. VRTK_ControllerEvents_Listener Example (Script)


If using UI elements…


Add the following components to your TrackedRemote parent:

VRTK_UIPointer (Script)

Change the Activation Mode to “Always On”

Set the Activation/Selection Buttons to “Button One Press” for Gear VR or “Trigger Press” for Oculus Go.

Click Method set to Click on Button Up

Next, add the following to your Canvas parent:

VRTK_UI Canvas (Script)


Add Teleport Script


Lastly, create an empty game object in your scene & add the following: VRTK_Basic Teleport (Script)


Scenic Mentor 5 Icon What’s Next?


Are you ready to build for Oculus Go or Gear VR?

Do you need to exclude areas from teleport using Policy List?

Do you want to incorporate 360 video, or create a Virtual Tour with 360 Images?

That’s it!
I hope this information will make it easier for you to get started with VRTK and Unity. Subscribe to my youtube channel for more VR tutorials.

You May Also be Interested In...