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 canvas

Creating a simple canvas - Unity Tutorial

From the course: Unity: Building VR User Interfaces

Start my 1-month free trial

Creating a simple canvas

- [Instructor] Now that we've gone through some of the theory about UI in VR, it's time to get down to practical implementation, where you're going to implement a HUD which is not the best use of UI in VR, but will give us a good understanding of our practical limitations. To start with, let's go into the OVRPlayerController and drill down until we get to the CenterEyeAnchor. We'll notice that this has a camera. Most of these settings are controlled by the Oculus SDK. But the one thing that we do need to note is the clipping planes. The near clipping plane has been set to 0.1 which is around about the front of the Oculus Quest device. However, we don't need the far plane to be 1,000 meters which is roughly a kilometer. For our purposes, we are going to reduce this to 100. And wherever possible, it's good to limit the amount of depth units you have so you can get a better depth rendering. All right, now let's add the…

Contents