From the course: Unity: Building VR User Interfaces

How to use the exercise files - Unity Tutorial

From the course: Unity: Building VR User Interfaces

Start my 1-month free trial

How to use the exercise files

- [Instructor] It's important for us to have a quick chat about exercise files. First, download and extract them somewhere, like I have here on my desktop. Now, let's have a look inside. You'll see that there's a bunch of folders with numbers as names. So these numbers directly correlate to the chapter and movie. So 01 would be the chapter here, and 03 would be the movie. Let's have a look inside one of these, shall we? Now, every one of these folders will have a folder called VRUI, and that is the Unity project. Now, there'll also be a folder called Assets. This will contain assets that we'll need to use in that movie for our Unity project. Now, in order to open up our Unity project, let's go over to the Unity Hub. Here, we have a blank Unity Hub. Now, let's add a project. Go over to Add, and let's go select a movie. We won't select 03_03. Let's go select 01_03, and you'll see that it has the VRUI folder. This is the root of our Unity project, so make sure that you select that and then select Open. In Unity Hub, you'll see a bunch of stuff here. You'll see the name, the version, the target platform, and when it was last modified. Make sure to set the target platform to Android. If the Android target platform is not available, please revisit the installation movie. Now, also make sure that your Unity version is exactly 2020.1.5. Now, we're ready to open the project. Click on this item here. You'll see that this triggers the opening of the project. This'll only be done for the first time, and it can sometimes take a little while, so make sure to grab yourself a cup of coffee. Now that we're inside Unity, you'll generally start up with this Untitled scene here in your hierarchy. That's not always the scene we're going to be working with. Usually, we'll be working in the Main scene. That'll be located under Assets, Scenes, Main. Double click that to get yourself in the right scene. So make sure that Main is in the hierarchy as the scene that you're using. Next, let's make sure that our build settings are correct. Go over to File, Build Settings. Make sure that the Main scene is in your scenes to build, and make sure that the Android platform is selected with this little Unity icon next to it. Lastly, always ensure that the Development Build checkmark is present. Also, if you've connected your Oculus device to your computer, make sure that you click on the default device here, next to Run Device, and select the Oculus Quest. This will make sure that you can use the Build and Run functionality. Now that we know how to navigate the exercise files and open up a project in Unity, making sure that its settings are correct, it's time to get stuck in.

Contents