VR setup and use

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
CPL_Buddha
Posts: 8
Joined: Tue Nov 14, 2017 10:12 am

VR setup and use

Post by CPL_Buddha »

This might be a Unity specific question. We are working with Dialogue Manager and HTC Vive. We have the have the demo scene “VR UI Example” loaded.

We were able to select an option only by pressing the left mouse button (fire1). But not by using the VR controllers. So I have a few questions.

1. What are we missing? How do we change the input to a VR controller and not the mouse?
2. Can we set it up for point and click selection verse gaze? If so how?

Thanks in advance.
User avatar
Tony Li
Posts: 22058
Joined: Thu Jul 18, 2013 1:27 pm

Re: VR setup and use

Post by Tony Li »

Hi,

The "VR UI Example" was designed to be as cross-platform as possible, including VR setups that don't have controllers.

To set up your UI for Vive controller input, first make sure you're using a Unity UI or TextMesh Pro dialogue UI. These use standard Unity UI input.

Then I recommend using VREALITY's Vive controller input module, available on github.

If you don't want to use that, you can run an EventSystem.Raycast in your own script as described in this forum post by Gregg Ladmer.

In either case, you should now be able to interact with any Unity UI elements (Dialogue System or other) using your Vive controllers.
Post Reply