Unity Hololens2 Development | (1) Environment Configuration

1. Configuration list

  • Windows10 SDK
  • Microsoft Visual Studio2022
  • Windows 10/Windows11 (Professional or Enterprise version operating system, not Home version)
  • Unity2021.3.29lts
  • MixedRealityFeatureTool (mixed reality toolkit for configuring MRTK3 Unity)
  • HoloLens 2 emulator: (It is not recommended to install if you have equipment or are beginners)
  • Configure developer mode
  • Holographic Remoting Player (holographic remote processing playback)

2.Windows10 SDK installation

  • Visual Studio Installer downloads the Windows 10 SDK directly. However, a path that is too long may cause application compilation problems.
  • Download and install the SDK by yourself:WindowSdk download link.
  • Package error after installation: error message "WindowsMobile version 10.0.xxx.0", solution: Copy the WindowsMobile folder of Windows Kits\10\Extension SDKs\WindowsMobile under the custom path of installing win10SDK to C:\Program Files (x86) \Windows Kits\10\Extension SDKs.

3.Visual Studio installation

  • Download address:Visual Studio download link.
  • Please make sure the following workloads are installed:
    ● .NET desktop development
    ● Desktop development using C++
    ● Universal Windows Platform (UWP) development
    ●Use Unity for game development (if you plan to use Unity)

Note: If you installed Unity first, some of these workloads may be pre-installed. Make sure you have all these workloads required for a successful deployment.

In UWP workloads, make sure you include the following components for installation:
● Windows 10 SDK version 10.0.19041.0 or 10.0.18362.0, or Windows 11 SDK
● USB device connection (required for HoloLens deployment/debugging via USB)
● C++ (v143) Universal Windows Platform Tools (when using Unity Required)
Visual Studio2022 installation configuration diagram

4.Unity installation

  • It is recommended to use Hbu download and installation:Unity download link.
  • The installation module must selectUniversal Windows Platform Build SupportheandWindows Build Support(IL2CPP) a>. It is recommended to install the UnityLTS version. Non-long-term support versions may cause abnormal errors
    Unity configuration

4.HoloLens 2 emulator

  • Download location:HoloLens 2 Product .
  • HoloLens2 device emulator is an optional tool and does not affect MR application development. However, in order to facilitate testing during the development process and speed up the MR application development process, it is recommended to install the simulator. There are two more steps required before installing the HoloLens2 device emulator.
    1. Enable virtualization technology support in the motherboard BIOS. Turning on Virtualization Technology can greatly improve the operating efficiency of the emulator. Most CPUs from Intel and AMD support this technology, and the names are VT-x and AMD-V respectively. However, the BIOS systems and systems installed on different motherboards are The versions are different. For the specific opening method, please refer to the BIOS system installed on each motherboard.
    2. Turn on the Hyper-V function of the operating system. Hyper-V technology is a virtualization technology supported at the operating system level. Open the control panel on the development computer, select "Programs>Programs and Features>Turn Windows features on or off", and check the Hyper-V checkbox. As shown in Figure 2, click "OK" to install and restart the computer after installation.
    HyperV

5. Configure developer mode

  • Open the Control Panel on the development computer, select "Update and Security>Developer Options", and turn on "Developer Mode";
    PC

  • In the HoloLens2 device, open the Settings panel, select Update & Security > For Developers, and turn on "Developer Mode".
    Hololens

6.MixedRealityFeatureTool download

6.Holographic Remoting Player (holographic remote processing playback)

Preview and debug your app during development: You can run your app locally in play mode in the Unity Editor on your PC and stream the experience to HoloLens2. This provides a way to quickly debug your application without having to build and deploy the entire project. We call this application a holographic remote processing playback mode preview application. Input from HoloLens2 (gaze, gestures, speech, and spatial mapping) is sent to the computer where content is rendered in a virtual immersive view. Then, send the rendered frame to HoloLens2.

  • To use HoloRemoting, you need to install the HoloRemoting Player app from the Microsoft Store on your HoloLens2 (we'll simply call it the "player"). Once you download and run the app, the version number and IP address to connect to will be displayed, as described below. Version v2.4 or higher is required to use the OpenXR plug-in.
    Holographic Remoting Player
  • On Unity's menu bar, select "Mixed Reality > Perform on Play Mode > Holographic Remoting"
    Holographic teleprocessing
  • In the Play Mode Holographic Remoting window, enter the HoloLens 2’s IP address in the Remote host name box.
    Play mode holographic remote processing
  • Select the Play button to enter Play Mode and view the app in HoloLens 2

Guess you like

Origin blog.csdn.net/backlighting2015/article/details/133922215