- Home /
Best way to display messages in VR?
Hey, I was wondering what's the best way to display messages in VR.
Should I create a text element as a child of the camera and show/hide it when necessary?
Thanks
Hi @Yannic89
This probably depends. Think about it;
Do you want to have something that sticks in your eye, no matter where you turn your head?
How far away is this kind UI element (stereoscopic vision)?
Or should it be placed in the world space?
I bet this is good starting point for answers:
https://unity3d.com/learn/tutorials/topics/virtual-reality/user-interfaces-vr
Depending on what you want.
I dont use VR, but I'm sure best way is to create a canvas. The question is WorldSpace or CameraSpacem depending on what you want to get. A text static to the world? or a text static for the camera.
Answer by sami1592 · Jan 30, 2019 at 12:49 PM
Instead, we generally need to position our UI within the environment itself using World Space Canvas render mode. This will allow our eyes to focus on the UI. This is known as Spatial UI.
Also
Many developers will initially attach the UI to the camera, so that as the player moves around the UI will stay in a fixed position. While this could be useful for a reticle or something small, for larger UI elements this often has the effect of holding a newspaper in front of your face while looking around, and can lead to user discomfort or nausea. Take a look at the UI in Shooter 360 (Target Arena), where the UI will move into view after a short delay (see gif below), allowing the user to look around and become familiar with the environment without a UI element fixed to their field of view, obscuring their vision.
More on here : https://unity3d.com/learn/tutorials/topics/virtual-reality/user-interfaces-vr
Your answer
![](https://koobas.hobune.stream/wayback/20220612173453im_/https://answers.unity.com/themes/thub/images/avi.jpg)