当前位置:网站首页>Oculus quest2 | unity configures the oculus quest2 development environment and packages an application for real machine testing
Oculus quest2 | unity configures the oculus quest2 development environment and packages an application for real machine testing
2022-06-30 15:35:00 【A little y who taps the code】

List of articles
- Unity To configure Oculus Quest2 development environment
- The first 1️⃣ Step , Create a new one Unity Project and import Oculus Integration package
- The first 2️⃣ Step , Import Oculus XR Plugin and XR Plugin Management
- The first 3️⃣ Step , Switch Android Platform and check Oculus
- The first 4️⃣ Step , Select a sample scenario to package
- The first 5️⃣ Step , Load the packaged application into Quest Real machine test
- summary
Preface
- That was true in the last article Oculus Quest2 I made a brief introduction , You can read the following article .
- Oculus Quest2 | Oculus Quest2 First experience ,Quest2 Development history and parameter introduction
- The next step is configuration Oculus Quest2 Develop the environment and integrate SDK 了 , Let's take a look at how to operate ~
Unity To configure Oculus Quest2 development environment
Now that the integration has started SDK 了 , Instructions for Unity I am already quite skilled , That's basic Unity There's not much to say about the operation , Let's start the operation directly !
The first 1️⃣ Step , Create a new one Unity Project and import Oculus Integration package
- stay Unity Create a new 3D project .
- From the menu , go to Window > Asset Store.
- stay Unity Asset Store in , Search for Oculus Integration.
- From the results , single click Oculus Integrate , Then click Import .
- stay Import Unity Package Window , Select all files and folders , And then click Import.
- When prompted to update Oculus Utilities When the plug-in , Click on Yes, And then click Restart.
This step ensures that you are using... Bundled with the package you are installing Oculus Utilities plug-in unit . If you choose not to update the plug-in at this time , You need to update it manually later . - When prompted to update Spatializer When the plug-in , single click Upgrade, And then click Restart.


And then wait Oculus Integration Just import the package .
The first 2️⃣ Step , Import Oculus XR Plugin and XR Plugin Management
open Windows-> Package Manager , Import Oculus XR Plugin and XR Plugin Management package
As shown in the figure below :
If the above two packages are not imported , You can also click it directly Project Settings Of XR Plug-in Management
There will be one for you to install XR Package options , Just click Install .
The test result here is similar to the manual import above Oculus XR Plugin and XR Plugin Management package An effect ~

Some tutorials also say that you need to install one XR Interaction Toolkit package , What exactly does this bag do , I will go into details later , Here is a brief introduction to how to install .
This package is installed in the same way as the above two packages , There are differences Unity Version in Package Manager You can't find it directly in !
When we can't find it, we can use the following two methods :
Method 1 : stay Package Manager Click inside Advanced, Check Show Preview Packages, And then in Unity Registry Mid search XR Interaction Toolkit Can be installed .
Method 2 : stay Project Settings -> Package Manager The admission Enable Preview Package, Then return to Package Manager Refresh and search again !


The first 3️⃣ Step , Switch Android Platform and check Oculus
stay File -> Build Setting... Next switch to Android platform 
And then in PlayerSetting Click on the XR Plug-in Management, Check Oculus
The first 4️⃣ Step , Select a sample scenario to package
stay Oculus There are many sample scenarios in the project of , Here I use DIstanceGrad scene Package and make a demonstration .
This sample scenario is a demonstration of Remote capture Demo, As shown in the figure below :
open File -> Build Settings -> Player Setting Add this scene , Click on Player Setting After modifying the company name and product name , Click on Build Just pack it 
The first 5️⃣ Step , Load the packaged application into Quest Real machine test
Now we have packed one Quest Instance scenario application of , Load it Quest Real machine test is enough .
Quest To install an application, you need to set Developer model , How to set the development mode is not described in detail here , Just search the Internet .
As long as the developer mode is enabled , The machine Quest The device can normally install our packaged applications like a mobile phone .
Here is how I put the packaged application into Quest The test results of the real machine , Let's have a look !


summary
- This article introduces How to use Unity To configure Oculus Quest2 Develop the environment and integrate Oculus Package an application to the real machine for testing .
- Follow the tutorial step by step , Overall, it is very simple .
- However, there may be errors such as reporting errors in a small step , Just test a few more times .
- Set developer mode There are many tutorials online , Just follow the instructions , If you have any questions, please leave a message in the comment area ~
- About Oculus Quest2 The tutorial article , There will be some updates later , If you like, remember to like this article and subscribe to this column ~
边栏推荐
- Anyrtc implements application scenarios based on webrtc
- Scattered knowledge of C language (unfinished)
- FoxPro and I
- Experiment of the planning group of the West University of technology -- pipeline CPU and data processing Adventure
- O - ACM contest and blackout (minimum spanning tree, Kruskal)
- Npumcm selection question 3 and acmc2020a
- HD mechanical principle · classic dynamic drawing of mechanical design
- Matlab two-dimensional array example (extract data)
- On which platform is it safer to buy Treasury reverse repo?
- Summary of system stability construction practice
猜你喜欢

Scattered knowledge of C language (unfinished)

Is Domain Driven Design (DDD) reliable?

Npumcm selection question 3 and acmc2020a

The sound network has fully opened the real-time transmission network sd-rtn, which has been free of network wide accidents for seven years - this is FPA!

Rte2021 review of the practice and the way of AI OPS landing

Some reference routines for cache update

Experiment of the planning group of the West University of technology -- pipeline CPU and data processing Adventure

数数据可视化实战案例(timeline轮播图,streamlit 控件年份 metabase可视化使用教程)2.0

Notes on zero basic C language learning -- first introduction -- 1 notes that mom can understand

Determine the number of digits of an integer in MATLAB (one line of code)
随机推荐
国债逆回购在哪个平台上买比较安全?
Database connection to company database denied
My own opinion on lisp
1015 reversible primes (20 points)
Is pioneer futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
How to program and process such parts?
1134: Legal C identifier query
001 data type [basic]
It's so brain - burning that no wonder programmers lose their hair
Advanced functions of ES6 operation array map (), filter (), reduce()
RTC monthly tabloid programming challenge ended successfully in June; Review of the first anniversary of sound network's listing
Machine learning feature selection
1025 pat ranking (25 points)
4.8 data type conversion
Start your global dynamic acceleration journey of Web services in three steps
I - constructing roads
先锋期货安全么?现在期货开户都是哪些流程?期货手续费怎么降低?
Super comprehensive redis distributed high availability solution: sentry mechanism
Basic requirements for tool use in NC machining of vertical machining center
Technology sharing | how to quickly realize audio and video online calls