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.

Preparing the buttons

Preparing the buttons - Unity Tutorial

From the course: Unity: Building VR User Interfaces

Start my 1-month free trial

Preparing the buttons

- [Instructor] Now that we've turned our VR HUD into something useful, like our login console, it's time to add some interactivity. I'm going to add two buttons to the bottom of this console, one to clear and one to test the console. But before I do that, I'm going to need to bring in some assets. Now I like rectangular buttons as much as the next guy, but I'm quite partial to rounded corners. So now I want to bring in a sprite that's got rounded corners that I can use for a button. Let's navigated over to the exercise files for this course, for this video. Here in the folder 0304 we've got two folders the one VRUI, which is the project and folder called Assets. Let's double click on Assets, we've got the roundedRect 16. That means that my corners happen over 16 pixels, and I'm going to go and drag this in to the Content folder. Let's go and take a look at our roundedRect 16. Now the first thing I want to do is change the…

Contents