Hololens 2 app works with holographic remoting, but not when deployed

%3CLINGO-SUB%20id%3D%22lingo-sub-2479043%22%20slang%3D%22en-US%22%3EHololens%202%20app%20works%20with%20holographic%20remoting%2C%20but%20not%20when%20deployed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2479043%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20developing%20an%20app%20for%20Hololens%202%20on%20Unity%202019.4.22f1%20using%20MRTK%202.7.1%20and%20XR%20SDK.%20I%20have%20done%20all%20of%20the%20basic%20MRTK%20setup%20(I%20added%20MRTK%20Foundation%2C%20Extensions%2C%20Tools%2C%20and%20Standard%20Assets%20using%20the%20Mixed%20Reality%20Feature%20Tool%3B%20I%20used%20the%20utility%20%22Configure%20Project%20for%20MRTK%22%20in%20Unity%20under%20Mixed%20Reality%20%26gt%3B%20Toolkit%20%26gt%3B%20Utilities%3B%20I%20installed%20the%20XR%20Plugin%20Manager%20and%20the%20Windows%20XR%20Plugin%20and%20adjusted%20their%20settings%20in%20Project%20settings)%20and%20I%20followed%20this%20guide%20to%20ensure%20my%20project%20was%20set%20up%20to%20use%20XR%20SDK%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmixed-reality%2Fmrtk-unity%2Fconfiguration%2Fgetting-started-with-mrtk-and-xrsdk%3Fview%3Dmrtkunity-2021-05%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmixed-reality%2Fmrtk-unity%2Fconfiguration%2Fgetting-started-with-mrtk-and-xrsdk%3Fview%3Dmrtkunity-2021-05%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20made%20a%20Hololens%202%20app%20before%20that%20worked%20when%20deployed%2C%20and%20this%20project%20is%20set%20up%20almost%20exactly%20the%20same%20way.%20The%20only%20major%20difference%20is%20that%20my%20working%20app%20has%20only%20one%20scene%2C%20while%20in%20this%20current%20project%20I%20am%20using%20multiple%20scenes%20loaded%20additively.%20I%20am%20using%20the%20MRTK%20scene%20system%20and%20have%20a%20Default%20Manager%20Scene%20at%20build%20order%200%20with%20the%20standard%20%22MixedRealityToolkit%22%20(configuration%20profiles)%20and%20%22MixedRealityPlayspace%22%20objects.%20I%20have%20an%20object%20in%20this%20scene%20with%20a%20script%20that%20additively%20loads%20another%20scene%20on%20Awake().%20This%20scene%20only%20contains%20a%20Unity%20UI%20canvas%20that%20has%20a%20RadialView%20solver%20and%20SolverHandler%20component%20on%20it%20(MRTK%20components%20to%20make%20it%20follow%20user's%20head)%2C%20and%20this%20canvas%20has%20some%20child%20ui%20elements%2Fimages.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20run%20the%20app%20using%20holographic%20remoting%20(Window%20%26gt%3B%20XR%20%26gt%3B%20Windows%20XR%20Plugin%20Remoting)%20everything%20works.%20The%20UI%20is%20able%20to%20move%20around%20and%20I%20can%20press%20the%20buttons%20on%20the%20UI.%3C%2FP%3E%3CP%3EWhen%20I%20deploy%20the%20app%20to%20the%20Hololens%202%20and%20run%20it%2C%20the%20ui%20is%20fixed%20to%20the%20camera%2Fmy%20head%20and%20the%20app%20doesnt%20seem%20to%20acknowledge%20my%20hands%20at%20all.%20I%20also%20added%20a%20cube%20to%20test%20a%20non-ui%20element%20and%20it%20also%20fixed%20in%20front%20of%20the%20camera.%20It%20looks%20almost%20as%20if%20the%20scene%20is%20rendered%20like%20a%202D%20screen%20in%20front%20of%20me.%3C%2FP%3E%3CP%3EMy%20Build%20settings%20are%20set%20to%20Universal%20Windows%20Platform%2C%20HoloLens%20target%20device%2C%20ARM64%2C%20latest%20installed%20Windows%20SDK%20and%20Visual%20Studio%2C%20and%20release%20mode.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20idea%20what%20could%20be%20causing%20this%20issue%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2479043%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHoloLens%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMRTK%20Unity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUnity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Visitor

I am developing an app for Hololens 2 on Unity 2019.4.22f1 using MRTK 2.7.1 and XR SDK. I have done all of the basic MRTK setup (I added MRTK Foundation, Extensions, Tools, and Standard Assets using the Mixed Reality Feature Tool; I used the utility "Configure Project for MRTK" in Unity under Mixed Reality > Toolkit > Utilities; I installed the XR Plugin Manager and the Windows XR Plugin and adjusted their settings in Project settings) and I followed this guide to ensure my project was set up to use XR SDK: https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/configuration/getting-started-with....

 

I have made a Hololens 2 app before that worked when deployed, and this project is set up almost exactly the same way. The only major difference is that my working app has only one scene, while in this current project I am using multiple scenes loaded additively. I am using the MRTK scene system and have a Default Manager Scene at build order 0 with the standard "MixedRealityToolkit" (configuration profiles) and "MixedRealityPlayspace" objects. I have an object in this scene with a script that additively loads another scene on Awake(). This scene only contains a Unity UI canvas that has a RadialView solver and SolverHandler component on it (MRTK components to make it follow user's head), and this canvas has some child ui elements/images.

 

When I run the app using holographic remoting (Window > XR > Windows XR Plugin Remoting) everything works. The UI is able to move around and I can press the buttons on the UI.

When I deploy the app to the Hololens 2 and run it, the ui is fixed to the camera/my head and the app doesnt seem to acknowledge my hands at all. I also added a cube to test a non-ui element and it also fixed in front of the camera. It looks almost as if the scene is rendered like a 2D screen in front of me.

My Build settings are set to Universal Windows Platform, HoloLens target device, ARM64, latest installed Windows SDK and Visual Studio, and release mode.

 

Any idea what could be causing this issue?

2 Replies

@ryanm798 I have the exact same issue and it is driving me nuts...did you manage to resolve ?

I have an issue with rendering the image loaded inside the child object which is visible in unity game mode. Have you encountered something similar to this?