Question About Applying Segmented Dimmer to UI Elements

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