Question About Applying Segmented Dimmer to UI Elements

Give us as much detail as possible regarding the issue you’re experiencing:

Unity Editor version: Unity 2022.3
ML2 OS version: v1.12.0
Unity SDK version: 2.6.0
Host OS: Windows, MacOS

Error messages from logs (syntax-highlighting is supported via Markdown):

I’m reaching out with a question regarding the Segmented Dimmer feature.

I followed this video demonstration:

and tested the Magic Leap 2 Dimmer functionality as shown. I created multiple objects in the scene to observe how the Segmented Dimmer operates. In the video, using the MLSegmentedDimmer.Activate() and Deactivate() methods allows switching the Blend Mode between Additive and Alpha Blend.



However, during my tests, I noticed that certain elements—like my Logger, Text, and Canvas buttons—do not respond to the Segmented Dimmer.
I would like to know:
Is there a way to enable Segmented Dimmer effects for UI elements such as logger panels, text overlays, or buttons?
I would especially like the text elements to be affected.

According to the documentation here:

multi-line text (whether floating or with a backplate) is supported by Segmented Dimmer. I’m trying to apply it similarly.

Any guidance on how to ensure the Segmented Dimmer affects these kinds of objects would be greatly appreciated.

Thank you in advance for your help!

Hey @JunsuSong ,

Are you using OpenXR or MagicLeap as your XR Plugin Provider?

If you are using OpenXR, MLSegmentedDimmer.Activiate() and Deactivate() will not work.

You will need to do something similar to this:

// Get the MagicLeapRenderingExtensionsFeature from the OpenXR settings
MagicLeapRenderingExtensionsFeature renderFeature = OpenXRSettings.Instance.GetFeature<MagicLeapRenderingExtensionsFeature>();
// Apply the new blend mode to the render feature
renderFeature.BlendMode = XrEnvironmentBlendMode.Additive;

Please use this guide as a reference and for more detailed information

Let me know if you get this working or if you have any more questions!

Best,
Corey