Then click 'save' and Unity will build your project. Open this folder and go down to where it says 'File name' and enter the name of your game with 'x86' at the end. Inside this folder, you will want to make a new folder called 'x86'. First, make a new folder and call it 'Builds', go into that folder and make another new folder called 'Windows'.
![]() The Oculus plugin is compatible for the Quest and all other Oculus devices. Lastly choose the folder location where youâd like to save this project.Oculus tries what it can to make building for its devices easy on the developers. Change your Template to â3Dâ. Name it something unique that youâll remember. Itâs free and available on Unityâs website here.When installing Unity, make sure you install the Android Build Support with it.To develop for Oculus Quest, youâll want the 2017.4 version of Unity or higher.Letâs open up Unity and create a new project. SDK Tools (In the âAndroid SDK Toolsâ tab)If you havenât installed Unity yet, letâs get that process started. Unity 2018 Build Update The OculusNow we need to make sure theyâre configured to work with your project.In Unity, go to your top menu, hover over File, and click on âBuild Settingsâ¦âThe Build Settings window appears. If this is the case, the Input Handlers are automatically installed.Youâre doing great! Weâve downloaded and installed all the tools you need to develop for Oculus Quest. The two weâre looking for are âOpen VRâ and âXR Legacy Input Handlers.â Select them to install, and close the Package Manager.Note that âXR Legacy Input Handlersâ may not be listed if youâre using an older version of Unity. Sit back and relax while your computer does its thing.Install OpenVR and XR Legacy Input packagesHead back up to your finder bar at the top of the screen and mouse over âWindowâ then click on âPackage Managerâ and select the tab âAll.â This is a long list of available packages to install in your project. Select âYesâ and âRestartâ. Once the Asset Store window opens, search for âOculus Integration.â Download this plugin, or import it into your project if you already have it downloaded.Your Unity project may ask if you want to update the Oculus Plugin Utilities. This opens another window on the far right off the screen. This may take a minute or two.In the Platform menu within âBuild Settingsâ click on âAndroidâ and select âSwitch Platform.â While doing this, make sure your Texture Compression is set to âASTC.âNext, Click on âPlayer Settingsâ on the lower left-hand side of the window. We want to start from scratch.Click on the âAdd Open Scenesâ button and add the scene you currently have open. App for pandora on macYouâre now ready to start building!Note: Some users get an error at this point. Confirm that âVirtual Reality Supportedâ is checked.Lastly, in the âVirtual Reality SDKsâ section, click on the little â+â and select âOculus.â Then click âBuildâ on the bottom right-hand side of your Build Settings window. Confirm your Package Name is along the lines of âcom.company name.product nameâScroll down and unfold the âXR Settingsâ section. In the âIdentificationâ section, change Minimum API Level to 4.4 KitKat. Right-click to add a GameObject, and letâs add a sphere.On the right hand side is your Inspector. You can download any asset from Unityâs Asset Store to represent your controllers and hands, but for simplicity in this tutorial weâll be using spheres.Head over to your Hierarchy on the left hand side. Remove âVulcanâ and your error should be resolved.Download our 10-week XR Development with Unity Course Syllabus Setup your Oculus Quest controllersWeâre going to set up a couple of spheres to represent your controllers ingame. Enable the âisKinematicâ property, and disable âUse Gravity.âDuplicate this sphere and change your âPose Sourceâ in the Tracked Pose Driver to âRight Controllerâ. In this component, set your âdeviceâ to Generic XR Controller.Add another component, this time a Rigid Body Component to your sphere. (This is why we needed the XR Legacy Input Handler package). Check out our programming guide for tips, advice, and resources to developing a VR app.If youâre looking for guidance in Unity development, we can help with that. You can now disconnect the Quest from your computer and launch the project.To find your project while wearing the Oculus Quest, go to your Libraries on the left-hand menu, select Unknown Sources, and your project should be listed there.Building for the Oculus Quest is an ambitious endeavour, good job! Itâs a great device to get started with.Now that youâre setup for Oculus Quest development, youâre ready to get building more advanced projects. We generally recommend creating a new folder labeled âBuildsâ for easy organization.After saving, Unity will have saved your application onto your USB-connected Quest. Alternatively you can go to the top of the Unity menu, select Oculus, and access Build and Run from there.You can then choose a name for your APK (Android Package Kit) and select where to save it. Put on the Quest and enable USB debugging for this computer.Back in Unity, head back up to the top menu to File and âBuild Settingsâ¦â Open the Build Settings window and click on âBuild and Runâ in the lower right-hand corner. Great!Letâs add a Cube to the scene so we have something to see and interact with while in game.Right-click in the Hierarchy tab to create a new GameObject and select a Cube.Set the position of the Cube to 0, 0, 1 so it will appear 1 meter in front of you.In the Cubeâs Inspector tab, add a RigidBody component, and make sure to disable âUse Gravityâ so the Cube floats in front of you.Save your scene by going to your top menu, hovering over File and selecting Save.Launch your project onto your Oculus QuestConnect your Oculus Quest to your computer through a USB cable. Within the Package Manager, download and install: Register for Developer Certificate with Oculus if you haven't done so already Settings > Android SDK Select Slider to activate Developer Mode Select your Quest from the list of devices Download our syllabus to learn more about what we can teach you! Install OpenVR and XR Legacy Input packages If prompted, update Oculus Plugin Utilities and restart Unity Download, Import, or Update the plugin, depending if you've accessed it before Go to Unity's Asset Store and search "Oculus Integration" Ensure Android Build Support selected to download as well Download Unity with version 2017.4 or newer Delete any scenes listed in the "Scenes in Build" area Note: If using an older version of Unity, the Input Handlers are built in and will not need to be manually installed Select OpenVR and XR Legacy Input Handlers Under Identification, confirm your Package Name is along the lines of com.company name. Other Settings > Identification > Change Minimum API Level to 4.4 KitKat Change Platform to "Android" and set Texture Compression to "ASTC"
0 Comments
Leave a Reply. |
AuthorDarryl ArchivesCategories |