Home > Blockchain >  Hololens Unity: GameObjects are invisible
Hololens Unity: GameObjects are invisible

Time:11-23

After I build my Unity project and send it to the Hololens, I have the following problem: The splash screen appear followed by a debugging window on the bottom. In the background is a white net. However, you can't see any game objects. I've tested a lot but haven't found a solution for that. Visual Studio does not display any error messages. What I've looked at roughly:

These are my modules. Im using the 2019.4.22f1 version of Unity and the MRTK Foundation Toolkit 2.7.2.

My build settings

My project settings

I tried to place the objects in the middle of the camera and changed the colors.

MRTK settings I haven't changed anything most of the time

Main camera settings

My scene

When i start the scene i get this error in the console. I dont know if this has anything to do with my problem

CodePudding user response:

i have two possible solutions (no guarantee)##

  1. you could spawn the objects on input directly in front of the camera, add a debug.log("object in front of you"); so you can find the issue.

  2. If this doesnt work i would try to test differnet types of materials like you do with HDRP.

if this does not work either i probably cant help you out now.

CodePudding user response:

It seems like your GameObject is too far to be hidden behind by the mesh. Please make the spatial mesh invisible by setting the Display Option property of Spatial Mesh Observer Setting to None, this item can be found under the Spatial Awareness profile of the MRTK profile.

  • Related