Getting Started with Unity VR Core and Oculus Quest

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone this is major batman and lincure studios here to go over a new vr tutorial if you don't already have unity hub 3.0 there's a new thing called vr core and so i've been playing around with it and i wanted to show you how to get it started in case you had any questions in addition one of my last videos um that just reached a thousand views which thank you very much had very low audio and i think i fixed it so let's do this so what we're going to do is we're going to create a new project we're going to click vr and name it and then we're going to create so let it go all right so when you get started you get this welcome welcome pop-up and it says you need to go to edit project settings and select your platform you plan to deploy to so this is needed to test it so within unity you can press to play and actually utilize it so let's go to edit project settings xr plugin management we're going to click on the oculus and i'm using the oculus you might be able to use one of these others but i'm going to assume most of you will be using oculus as well and then once you're done there we're going to exit out of there so let's see what what's available so in the sample scene there's not much here it's just a grid measured out which is which is fine a directional light a plane which has a mesh collider and an xr rig which doesn't have really the xr rig components so that's interesting a camera a right controller and a left controller with the pose driver and then a model so this is holds all the different pieces to the model so we can adapt those or animate them if we wanted to and we're not going to go into that today so not a lot before we get too far along i'm going to throw in a model of a charizard that i had [Music] and i'm going to rotate him a little bit so i'm going to test this out so let's let's see give me a second so what i'm going to do is i'm going to put on my headset i'm going to open up the oculus air link which will connect to my computer and then when i press play within unity it should play on my headset so we're gonna i'm gonna press maximize and play so it's good for viewing for you all right so we can look around and we can see that there's a model in front of us and then we can see that there is two controllers when we come close they disappear and they don't really do anything but we're not gonna do that today and we can't move at all and i'm getting a little lag [Music] all right but they're oriented correctly and they work so for a default vr project not too bad all right so the first thing we're going to do is we're going to open up the package manager you can up update the xr plugin management if to 4.07 i just like to keep my stuff up to date and then we're going to click on advance here advanced project settings and we're going to click enable preview packages you're going to say i understand we're going to close out of that and then up here in packages we're going to look at the unity registry and what we're looking for is the xr interaction toolkit so you see it here as as preview 6 and so that's what i'm going to install [Music] it will ask you to restart and this is due to changing the input apis so we're going to click yes all right great and the next thing we're going to do is go back to the x our interaction toolkit and we're going to import the default input input actions perfect all right [Music] so we're going to go to our samples xr interaction toolkit open up our default interactions and let's view these right here so we're going to click on the left controller and we're going to go up here and add to action based controller default we'll do the same to the right controller next we're going to go into project settings we're going to go to the preset manager and for the right and left we're going to just type right and left easy enough i think that's it so let's open up our xr rig and let's get started on some changes so on xr rig the first thing we want to add is an xr rig and i think we might be able to adapt these we have a camera offset here so we might be able to put this here as a floor offset object [Music] and attach the camera game object the next thing we're going to add is a locomotion system [Music] and we're going to bring in the xr rig next we're going to add an input action manager and it has an empty list of action assets so by importing those default input actions this gives us a good starting point for a lot of vr work you can of course customize it change it how you want but for what we're doing it's really easy to just get started and add one and bring in our default input actions all right then we're going to add a continuous move provider action based and then we're going to add in the locomotion system here we can change the speed i like to about a 1.5 and then we're going to make it be on the left hand we're going to change this to left hand move the next we're going to add is a snap turn provider action based and we're going to click use reference for right hand and we're going to go over here to right hand turn the next thing we're going to do is we're going to go to the main camera we're going to change that clipping plane to 0.01 as it was a little too close beforehand then we're going to go to the right and left controller control click on both at the same time and we're going to add in an xr controller action base to both of them and so if we just click it it automatically updates based upon that preset we've already set up [Music] so with that i'm gonna go back in the game and we should be able to move and we should be able to turn so we're in the game we have our controller still working and we can bring them close to our face down which is cool and then we can move using the left joystick and we can snap turn with the right and now we can see behind charizard and that my friends is how to set up a vr project rather simply and quickly i hope this was informative and if you like please please leave a like and comment and perhaps subscribe i hope you have a great rest of your day cheers
Info
Channel: Linkira Studios
Views: 303
Rating: undefined out of 5
Keywords: #unity3d, #gamedev, #indiedev
Id: WimG1KIGVWk
Channel Id: undefined
Length: 8min 8sec (488 seconds)
Published: Sun Oct 24 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.