Download Unity at https://unity.com/releases/editor/archive, look for Unity 2021.3.10. Please note that it is important to use the same Unity version across your project.)
Add Oculus Integration asset to your unity account You will only need to do it once for your account.
- Go to Asset Store online with the following link and login. a. https://assetstore.unity.com/packages/tools/integration/oculus-integration-82022
- Add to my assets, Accept EULA, Open in Unity, Open.
See https://developer.oculus.com/documentation/unity/unity-import/ for full documentation.
- Window > Package Manager.
- At the top: Packages: In Project > Change to: My Assets.
- Find Oculus Integration > Download or Update > Import. a. Latest version should be v.47 as of writing the document. 4. Import > Yes > Use OpenXR > Ok > Restart > Update > Restart.
For Step 1-7: see https://developer.oculus.com/documentation/unity/unity-conf-settings/ for full documentation.
- On the menu, go to File > Build Settings.
- Under Platform, check Android is selected.
- Select Development Build to test and debug the app. When you’re ready for the final build, clear the selection as it may impact the app performance.
- Then expand the Other Settings tab. a. Under Rendering: i. Check Color Space is Linear. b. Under Identification: i. In Minimum API Level, check the minimum Android version is set to Android 10 (API level 29) for Oculus Quest and Oculus Quest 2. c. Under Configuration: i. In the Scripting Backend list, check IL2CPP (Intermediate Language To C++) is selected. ii. Clear the ARMv7 checkbox and instead select the ARM64 checkbox.
- Go to Project Settings > Quality. a. Click Medium. b. In Anti Aliasing, check 4x is selected. c. Check if the Realtime Reflections Probes checkbox is selected d. Check if the Billboards Face Camera checkbox is selected
- Go to a. Install XR Plugin Management. b. Show Assets (Recommended) -> Clean Up (Recommended) -> Clean Up Package. c. On the Android tab, select the Oculus checkbox to install the Oculus XR plugin. d. See https://developer.oculus.com/documentation/unity/unity-xr-plugin/ for further details on XR Plugin.
visit this link and download the PUN 2 - Free package.
visit this link and download the blood splatter (https://assetstore.unity.com/packages/2d/textures-materials/blood-splatter-decal-package-7518).
- Window > Package Manager.
- At the top: Packages: In Project > Change to: Unity Registry.
- Find XR Interaction Toolkit > Download or Update > Import.
- To beign playing, wear the headset and allow debbuing and access to the device.
- With the headset on click the App Library
- Navigate to the drop down menu on the top right and click Unkown Sources
- You should see the application tha you just built
- Run the app and play the game !