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.
HoloLens GUI
Hello,
I am trying to get GUI that works on the Unity camera to work on the HoloLens view. The goal being to keep the numerical value of an objects position up in the top left corner of the HoloLens view at all times. I am sure it a simple fix, but the GUI for the Unity camera does not appear in the view of the HoloLens.
Thanks for your help,
Jabu
Best Answers
-
Optionsahillier mod
Hi @JabuJabu,
If you have a 'Canvas' object for your GUI, then set the Canvas' Render Mode to 'Screen Space - Camera' and position your text object in the upper, left corner of the canvas. You should then see the same behavior on HoloLens as you do in the Unity editor.This approach is fine for showing quick debug information (like frame rate), but In general, we advise against locking any UI content to the camera, as this can cause discomfort to the user. We recommend using a tagalong component that can keep your UI canvas within the holographic frame. With tagalong, the canvas will move smoothly, and slightly slower than the user's head, so the motion won't make the user sick. The gaze course shows how to use a tagalong component, and there is also one available in the HoloToolkit.
5 -
OptionsHoloSheep mod
@JabuJabu here is a link with some basic info about some of the tweaks you will want to be aware of to get Unity UI to play nice on the HoloLens.
Windows Holographic User Group Redmond
WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
WinHUGR YouTube Channel -- live streamed meetings6
Answers
Hi @JabuJabu,
If you have a 'Canvas' object for your GUI, then set the Canvas' Render Mode to 'Screen Space - Camera' and position your text object in the upper, left corner of the canvas. You should then see the same behavior on HoloLens as you do in the Unity editor.
This approach is fine for showing quick debug information (like frame rate), but In general, we advise against locking any UI content to the camera, as this can cause discomfort to the user. We recommend using a tagalong component that can keep your UI canvas within the holographic frame. With tagalong, the canvas will move smoothly, and slightly slower than the user's head, so the motion won't make the user sick. The gaze course shows how to use a tagalong component, and there is also one available in the HoloToolkit.
@JabuJabu here is a link with some basic info about some of the tweaks you will want to be aware of to get Unity UI to play nice on the HoloLens.
Windows Holographic User Group Redmond
WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
WinHUGR YouTube Channel -- live streamed meetings
Hi everybody,
I am going to design some GUIs with Unity and apply it to HoloLens. I searched a lot to find a good tutorial but I found nothing. I would be thankful if you let me know whether there are good tutorials in this area.
Hi @JabuJabu,
I've seen that you have worked on GUI on HoloLens. Could you please let me know if there were any good tutorials.