# GUI content disappears after entering the webxr that opens multiview

**URL:** <https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802>\
**Category:** Questions\
**Tags:** gui, webxr\
**Created:** [November 20, 2023, 4:22am UTC](https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802 "2023-11-20T04:22:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ye\_zhang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ye_zhang/32/34823_2.png) [@ye\_zhang](https://forum.babylonjs.com/u/ye_zhang)\
**Post date:** [November 20, 2023, 4:22am UTC](https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802/1 "2023-11-20T04:22:34Z")

</div>

As mentioned in the question, when I open multiple views and enter webxr, the content of the gui disappeared. I don’t know why.

The HMD I am using is oculus quest 2

This is an example

> **[Babylon.js Playground](https://playground.babylonjs.com/#XCPP9Y%2320319)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 20, 2023, 11:02pm UTC](https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802/2 "2023-11-20T23:02:42Z")

</div>

Adding @RaananW our XR mastermind to the thread.

---

<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:** [November 21, 2023, 9:52am UTC](https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802/3 "2023-11-21T09:52:07Z")

</div>

XR doesn’t support fullscreen API yet. It does support GUI that is attached to a mesh or the 3D GUI elements.

---

<div class="post-metadata">

**Author:** ![ye\_zhang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ye_zhang/32/34823_2.png) [@ye\_zhang](https://forum.babylonjs.com/u/ye_zhang)\
**Post date:** [November 23, 2023, 10:17am UTC](https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802/4 "2023-11-23T10:17:27Z")

</div>

I tried, but the 3D GUI also couldn’t display properly

  

> **[Babylon.js Playground](https://playground.babylonjs.com/#XCPP9Y%2320344)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

And these exceptions only appear when I open multiple views

```auto
defaultXRExperience.baseExperience.featuresManager.enableFeature(
            BABYLON.WebXRFeatureName.LAYERS,
            'latest',
            { preferMultiviewOnInit: true },
            true,
            false
        )

```

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [November 23, 2023, 11:21am UTC](https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802/5 "2023-11-23T11:21:37Z")

</div>

Does the same thing happen if you open a regular mesh GUI in XR? (I don’t have a device so unfortunately I can only test on emulator) [Texture mode Babylon.GUI | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#ZI9AK7#3862)

---

<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:** [November 23, 2023, 11:34am UTC](https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802/6 "2023-11-23T11:34:15Z")

</div>

This might be an issue with multi-scene clearing between the two frames. I can look into that in the near future. I would recommend to skip multiiew for now, until I find the reason for that.

Of course - this should work! So not using multiview is only a temporary solution

---

<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:** [November 23, 2023, 11:43am UTC](https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802/7 "2023-11-23T11:43:38Z")

</div>



---

<div class="post-metadata">

**Author:** ![ye\_zhang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ye_zhang/32/34823_2.png) [@ye\_zhang](https://forum.babylonjs.com/u/ye_zhang)\
**Post date:** [November 23, 2023, 12:09pm UTC](https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802/8 "2023-11-23T12:09:49Z")

</div>

Oh, this is working normally, so currently it appears in GUIs that use FullscreenUI

---

<div class="post-metadata">

**Author:** ![ye\_zhang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ye_zhang/32/34823_2.png) [@ye\_zhang](https://forum.babylonjs.com/u/ye_zhang)\
**Post date:** [November 23, 2023, 12:11pm UTC](https://forum.babylonjs.com/t/gui-content-disappears-after-entering-the-webxr-that-opens-multiview/45802/9 "2023-11-23T12:11:37Z")

</div>

Ok, thank you so much  
🤞
