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

Creating a simple reticle - Unity Tutorial

From the course: Unity: Building VR User Interfaces

Start my 1-month free trial

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…

Contents