HoloLens 2丨Packaging丨MRTK丨Unity丨Teaching for Beginners

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
    insert image description here
  • Make sure the four components in our diagram are installed
    insert image description here

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)
    insert image description here

  • Or click Releases to enter the required package to download
    insert image description here
    insert image description here

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.

    insert image description here
    Click Switch platform to switch The platform adjustment parameters are the same as those shown in the figure.
    insert image description here

  • Just click Build to select the folder to create

Visual StudioModification

  • open in file

insert image description here

  • Change to Release or master
    insert image description here

  • Right click on our project
    insert image description here

  • Find Publish----Create Desktop Application
    insert image description here

  • Turn off automatic updates
    insert image description here

  • 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)
    insert image description here

  • Packing complete

  • insert image description here

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

insert image description here
insert image description here

  • Click Views—Apps on the leftinsert image description here

  • Select the path of the installed program just packaged
    insert image description here

  • Click "Install" and wait for the program installation to complete.insert image description here

  • succeeded
    insert image description here

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
    insert image description here

  • 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:
    insert image description here

  • 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.

Guess you like

Origin blog.csdn.net/weixin_42746271/article/details/129059788