Give us as much detail as possible regarding the issue you’re experiencing:
Unity Editor version: 2022.3.56f1
ML2 OS version: v1.12.0
Unity SDK version: 2.6.0
Host OS: Windows
Error messages from logs (syntax-highlighting is supported via Markdown):
I understand that the Magic Leap 2 device supports ambient light measurements in the range of 5 lux (low) to 1,000 lux (high). I have also read a note stating that it is intended for indoor use only, so I assumed the maximum value would be capped at 1,000 lux.
I based my Unity code on the official documentation—I used the Unity Input System to enable and read the LightSensor.current.lightLevel
value in lux, following the sample code from the Magic Leap Android Sensors guide.
However, when I printed the sensor readings, I observed different results. For example, when pointing at a fluorescent light in a home environment, I often see values around 2,000 lux, and sometimes even between 3,000 and 5,000 lux. When I shine my phone’s flashlight at it, I can get readings up to 10,000 lux.
Since the documentation says the sensor supports up to 1,000 lux, I’d like to know:
-
Is the sensor actually capable of outputting values up to 10,000 lux?
-
Could you share the exact model or type of ambient light sensor used in the Magic Leap 2?
Thank you in advance for your help.