Hololens 2 app works with unity game mode, but not when deployed to hololens2.

%3CLINGO-SUB%20id%3D%22lingo-sub-3327889%22%20slang%3D%22en-US%22%3EHololens%202%20app%20works%20with%20unity%20game%20mode%2C%20but%20not%20when%20deployed%26nbsp%3Bto%20hololens2.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3327889%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EI%20am%20developing%20an%20app%20for%20Hololens%202%20on%20Unity%202020.3.33f1%20using%20MRFT%20v1.0.2203.0%20and%20XR%20SDK.%20I%20have%20done%20all%20of%20the%20basic%20MRTK%20setups%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).%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CP%3EThis%20is%20the%20first%20time%20I%20am%20working%20on%20the%20hololens2%20project.%20Initially%2C%20I%20was%20able%20to%20render%20objects%20to%20hololens2.%20Then%20I%20modified%20my%20scene.%20Now%2C%20I%20have%20a%20parent%20object%20and%20a%20child%20object%20in%20this%20scene%20with%20a%20script(called%20in%20child%20object)%20that%20loads%20the%20medical%20image%20to%20the%20scene.%26nbsp%3BThen%20I%20built%20a%20scene%20to%20render%20a%20medical%20image%20via%20which%20is%20called%20inside%20the%20child%20object%20and%20it%20was%20visualized%20when%20game%20mode%20is%20enabled%20in%20unity.%20Unfortunately%2C%20I%20could%20able%20to%20visualize%20both%203D%20objects%20on%20hololens2%2C%20not%20the%203D%20image.%26nbsp%3B%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%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3327889%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ehololens%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMRTK%20Unity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOpenXR%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUnity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor
I am developing an app for Hololens 2 on Unity 2020.3.33f1 using MRFT v1.0.2203.0 and XR SDK. I have done all of the basic MRTK setups (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).
 

This is the first time I am working on the hololens2 project. Initially, I was able to render objects to hololens2. Then I modified my scene. Now, I have a parent object and a child object in this scene with a script(called in child object) that loads the medical image to the scene. Then I built a scene to render a medical image via which is called inside the child object and it was visualized when game mode is enabled in unity. Unfortunately, I could able to visualize both 3D objects on hololens2, not the 3D image. 

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?

0 Replies