Samuel Morais
Samuel Morais

Reputation: 3

Why HoloLens Emulator displays a black screen?

I am struggling to make HoloLens 2 Unity project work on the Emulator.

What I have tried is to build the project using the Build Settings x64, Local Machine.

It worked for the first time, and I tried 3 or 4 different MRTK example scenes or tutorials... and it is a knightmare to make the project run in the emulator.

I tried running with all the combinations of Release, Debug, x86 and x64.

My question is:

Is there a log that shows what is going wrong? (In this specific case, there was no message in the Output log nor Exceptions shown in Visual Studio).

Hololens 2 Emulator blank screen

EDIT: If someone wants to try running the project, please try this link with the whole Unity Project (version 2020.3.21f1): https://drive.google.com/file/d/1X7E4CmUb38CxxQbLmOsf4Bc8mjr_YYp6/view?usp=sharing

EDIT 2: I removed some comments about HoloLens Emulator because I was too angry when I wrote it and it was not adding to the discussion.

Upvotes: 0

Views: 555

Answers (1)

Vincenzo Mazzone
Vincenzo Mazzone

Reputation: 1

To debug in a deployed version, you need to build the project with these debug settings enabled

unity settings

And then you will be able to attach unity debugger from Visual studio and analyze logs and also other useful debugger tools.

visual studio debugger

Upvotes: 0

Related Questions