Spatial Mappong working with Holographic emulator but not when compiling on device

I’m learning Hololens dev on Unity. Spatial Mapping seems to work well on Unity with the Holographic Emulator. But when I compile the app on the device, I can’t see the mapping of my room (I can see static objects I set in Unity, but not the spatial mapping meshes).

I get a recurrent log on the output
RenderTexture.GenerateMips failed: render texture does not have mip maps (set useMipMap to true).

But I get this trace also with the Holographic emulator, so it might not be the problem.
Any clue/help very appreciated

Actually I just had to add the Spatial Perception Capability in Edit/Settings/Player menu, and it worked.

1 Like

This is a bug in Unity actually - we should tell you that you need to do it if you forget about it, instead of spitting out some random error message. Thanks for the report :).

2 Likes

Thx, yes true :slight_smile: