# How to make a GUI to follow the camera in XR/VR

**URL:** <https://forum.babylonjs.com/t/how-to-make-a-gui-to-follow-the-camera-in-xr-vr/12259>\
**Category:** Questions\
**Tags:** gui\
**Created:** [July 6, 2020, 7:09am UTC](https://forum.babylonjs.com/t/how-to-make-a-gui-to-follow-the-camera-in-xr-vr/12259 "2020-07-06T07:09:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [July 6, 2020, 10:14am UTC](https://forum.babylonjs.com/t/how-to-make-a-gui-to-follow-the-camera-in-xr-vr/12259/5 "2020-07-06T10:14:38Z")

</div>

So you are trying to achieve an HUD-Style GUI that will follow the camera wherever you go.  
You could use a full-screen UI for that. This is our default GUI example with XR support and a bit of changes so that you will see it correctly in XR:

[https://playground.babylonjs.com/#J8AGW2](https://playground.babylonjs.com/#J8AGW2)

This can get you started with building HUD-style GUI.

It will work better once this is merged - [[XR] Babylon calculates the view matrix of the main camera by RaananW · Pull Request #8487 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/pull/8487) , but the fullscreen GUI does work correctly

---

_[View the full topic](https://forum.babylonjs.com/t/how-to-make-a-gui-to-follow-the-camera-in-xr-vr/12259)._
