From the course: Unity: Building VR User Interfaces

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The usefulness of a ray pointer

The usefulness of a ray pointer - Unity Tutorial

From the course: Unity: Building VR User Interfaces

Start my 1-month free trial

The usefulness of a ray pointer

- [Instructor] Now, throughout this chapter, you might've noticed that the reticle feels slightly disconnected from the input method, which is your hand. So in this video, we are going to address that, we're going to create a pointer that's attached to the controller that points directly to the reticle, and this will help you to visually and mentally connect these concepts. To do this, we're going to use a LineRenderer and we're going to start by attaching that to the controller. Let's dig down into our OVR player controller And I'm going to attach it to my right hand, if you're left-handed, please attach it to the left hand. Whichever hand you attached the reticle to, let's open this up, right click and go create empty. I'm going to call this ray. And I'm going to add a LineRenderer to this. All right Now, a LineRenderer is a fantastic and easy way of drawing a line. It's always going to be facing the user, it…

Contents