The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Room mesh not always aligned with UP direction in Unity
I am using Unity to develop a Hololens app.
Most of the time the room mesh that I receive from the Lens is aligned with the UP direction in Unity's world (0,1,0).
However, it sometimes occurs that the room meshes suddenly losses its alignment with Unity UP vector, which results in a tilted mesh (about 40 degree off Unity's UP direction).
(Please note that the room mesh looks perfectly fine inside the lens, its just that its UP vector is off compared to Unity's UP so it looks tilted in the editor)
(Please also note that once the tilt happens the room meshes will be tilted both on the editor with remote debug, and when running the app directly on the lens itself).
Now I understand that the origin of the room is different from Unity but 40 degrees seems a bit off, that would also mean that many game properties would have to be changed accordingly (gravity direction for instance).
The strange thing is that the room is normally aligned with Unity's UP for a while, and then it changes for no obvious reason and cannot be reverted back to normal alignment and remains off 40 degrees, unless I create an entirely new scene (some obscure residual cache value might cause the problem ???)
Could anybody confirm that this behavior is not to be expected, and that a room mesh should always more or less be aligned with Unity's UP vector?