UI Is Not Transparent

Unity Editor version: 2022.3.27f1
ML2 OS version: 1.7.0
Unity SDK version: 2.2.0
Host OS: Windows 11

When I build the Unity examples project to the device, everything works as expected and the UI is transparent.

I've created a simple project containing just a primitive cube and I duplicated the settings and XR-Rig from the Unity examples project but when I build to the same device, the background is opaque.

Changing the Global Dimmer and Segmented Dimmer settings have no effect on this.

I've also included the script in this article:
https://developer-docs.magicleap.cloud/docs/guides/unity-openxr/rendering-extensions/global-dimmer/global-dimmer-example/#

... and it doesn't seem to function at all.

Any suggestions?

Have you looked into disabling the segmented dimmer in the OpenXR Magic Leap Render Extensions?

Do you mind verifying the post processing and HDR is disabled inside your project's Graphic Settings?

Are you using URP for your new project?

Hi @kbabilinski and thank you for getting back to me so quickly!

We are using URP in this project. I have verified that post processing and HDR are disabled. For the record, post processing is NOT disabled in the Unity examples project and everything works as expected.

Disabling segmented dimming in the device settings sort of fixes the issue but I suspect there's something else going on. When I record a video of myself using the Unity examples project, it records the room that I'm in. When I do the same with my simple project, the room is not recorded and the environment is completely black with just the cube and the line renderer/pointer.

The issue you are seeing is that an effect or graphics setting is clearing the frame's alpha value. Unity is aware of this issue and is looking at adding support for handling alpha in post-processing in the future.


Are you using the XR Rig imported from the Magic Leap SDK Sample Inputs & Rig?

I'm using the ML Rig from the Magic Leap Unity (OpenXR) Examples project.

https://developer-docs.magicleap.cloud/docs/guides/unity-openxr/openxr-unity-samples/

Thank you for that information. Do you mind copying over the URP render pipeline from the Unity Example project?

I have taken that step already and the results are the same. I think I've done most everything to make my project identical to the Examples project; though I'm sure there's something I missed. :thinking:

You may want to do a diff of the two projects and see what is different about them.

Have you verified that the correct pipeline is selected in the Graphics settings and across all of the quality settings?


I never did figure out what was wrong. We decided just to use the Examples Project and copy our scripts over from there.

Thank you for the thorough responses!

1 Like

This topic was automatically closed after 17 hours. New replies are no longer allowed.