Search code examples
unity-game-engineoculus

UI Overlapping Issue in Unity Mixed Reality


GOAL

I imported Meta XR Integration package and Meta XR Simulator. Project platform is Android.

At play mixed reality mode, I want to show UI.

CONTENT

I use Built-in and Unity2022.3.8f1. I am using Meta XR Integration 57.0.

I tried show up UI in mixed reality mode but UI is disappear after show UI during few seconds.

But Passthrough is working fine.

How can I fix it?

OVR Camera Rig Setting

Passthrough Setting

CenterEyeAnchor Setting


Solution

  • Composition Depth

    You can change the Composition Depth.

    Composition Depth determines the virtual distance at which the passthrough imagery appears in your VR application.

    Using a negative value for the passthrough layer will cause it to overlap with the UI, while using a positive value will make it underlie the UI.