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 - Unity Tutorial
From the course: Unity: Building VR User Interfaces
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
What is a reticle and why do you need it?1m 57s
-
(Locked)
Creating a simple reticle3m 56s
-
(Locked)
Reworking the HUD as a logging console4m 47s
-
(Locked)
Preparing the buttons7m 15s
-
(Locked)
Adding interaction to the console4m 14s
-
(Locked)
Customizing the reticle5m 26s
-
(Locked)
The usefulness of a ray pointer7m 21s
-
(Locked)
-
-
-
-