VJPPaz
VJPPaz

Reputation: 1015

Unity HoloLens App is executed as Windows App instead of AR

I am building a HoloLens Unity App using the following tools

Unity Project/Scene Configuration

Target Platform Settings

enter image description here

How I deployed:

  1. Added Open Scene
  2. Build
  3. Open *.sln file
  4. Set 'Universal Windows' project as default project.
  5. Updated [Machine Name/IP] for remote execution
  6. Run/Start the project using 'Remote Device' (HoloLens 1)
    • deployment package was successful
  7. BUT instead of having a CUBE floating in real world, hololens displayed the App as a Windows App.

enter image description here

Did I miss some incorrect configuration?

Under Target Platform maybe? MRToolkit settings? Platform Settings? UWP Settings?

And also i can't find any documentation on how to do a deployment using the latest MRToolkit v2 TO A HOLOLENS 1 DEVICE. If you can share some links it would be great as well

Thank you in advance.

Upvotes: 4

Views: 1747

Answers (2)

sharper94
sharper94

Reputation: 1

In addition to HoloLady's answer, to deploy to HoloLens 1 with MRTK v2 you may encounter some additional problems on build.

You need to be using the latest Windows Insider preview on your build PC, with the latest Windows SDK installed (18988 works), although seeing as you managed to build it then maybe you already have this.

You'll likely encounter an error whilst trying to run your app that will involve MixedRealityToolkit.Services.InputSimulation.asmdef. A quick fix for this is to navigate to Assets/MixedRealityToolkit.Services/InputSimulation/ in the Unity project and change the .amsdef file to run on any platform. After this, it should run correctly.

Upvotes: 0

HoloLady
HoloLady

Reputation: 1043

You did miss some configuration! You forgot to enable the XR mode in the player settings. In Edit > Project Settings > Player The last option is the XR Settings there you need to set Virtual Reality Supported to true and check you have Windows Mixed Reality as the Virtual Reality SDKs

Upvotes: 5

Related Questions