HoloLens 2 packaging process production
foreword
提示:今日功能介绍
Use MRTK to make a novice teaching for the packaging process of Hololens 2.
Introduction to development tools
这里为开发工具介绍
The version is not limited but it is recommended to exceed the 2018 version
- Unity2019.4.18f1
- Visual Studio 2019
Visual Studio 2019
vs升级步骤
- Find Visual Studio Installer
and click Modify to add the development components we need
- Make sure the four components in our diagram are installed
MRTK plug-in or sample program download
-
Open our MRTK Git page
https://github.com/microsoft/MixedRealityToolkit-Unity -
If there is related Git software, you can directly use the HTTPS connection to pull or download the compressed package directly
(this article directly uses the sample program to operate)
-
Or click Releases to enter the required package to download
Introduction to packaging process
Unity operation modification
-
Switch platform to modify parameters
(here to confirm that Unity has a UWP module).
If not, click the gear on the right of UnityHUB and click Add Module.
If there is no such module and no Hub, you need to download the module from the official website and install it in the directory.
Click Switch platform to switch The platform adjustment parameters are the same as those shown in the figure.
-
Just click Build to select the folder to create
Visual StudioModification
- open in file
-
Change to Release or master
-
Right click on our project
-
Find Publish----Create Desktop Application
-
Turn off automatic updates
-
You can choose
X64 and X86 as the output location to see your own needs
(HoloLens1 can use ARM, ARM64 can’t be used, and there is no limit for 2)
-
Packing complete
Hololens modification
- After completion, use a data cable to connect Hololens2 to the computer or not to connect to the computer
(make sure the computer and Hololens2 are in the same local area network) - Open hololens to view the network IP address
- Enter the Hololens IP address in the web page. Enter username and password
-
Click Views—Apps on the left
-
Select the path of the installed program just packaged
-
Click "Install" and wait for the program installation to complete.
-
succeeded
Graphic editing
Forgot Hololens password
-
When you forget the user name and password of the Hololens2 backend console or need to reset the user name and password, enter the wrong user name or password four times in the login box of the backend console, reopen the backend console, and the reset password interface appears
-
Make sure that Hololens2 is in non-standby state (observe whether the indicator light above the Hololens2 data cable connection port remains on), click Request pin, and a random PIN code will be generated in Hololens2 at this time, and the back-end console interface is as follows:
-
Enter the generated PIN code in PIN displayed on your device, enter the new user name and password below, and click Pair to complete the password reset.
Summarize
制作内容结束介绍
This article is aimed at teaching novices, students who want to develop HoloLens, don't expect it just because it looks high-end, in fact, the configuration method is also very simple.