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.
Creating a simple reticle - Unity Tutorial
From the course: Unity: Building VR User Interfaces
Creating a simple reticle
- All right. Now that we understand a little bit more about what I mean by a reticle and why we need it, it's time for us implement it. Luckily for us, oculus has done all the leg-work here, so we're just going to copy some of their work and bring it into ours. To do that, let's go navigate, in the projects panel to the oculus folder, and let's drill down into VR and then into scenes, go and open the UI scene. Now we're going to be grabbing these two bottom items here, but before we do, I want to highlight some scripts that we're going to need as well. Go over to the OVR player controller, click on the camera rig and scroll down to the bottom. You'll see here that they've added the OVR physics raycaster. This will allow us to interact with physical objects with our raycast system. Also, you'll see if we open up the light canvas, they have the OVR raycaster. Now this raycaster allows us to interact with…
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)
-
-
-
-