# Why was the light detection example dropped from examples?

**URL:** <https://forum.magicleap.cloud/t/why-was-the-light-detection-example-dropped-from-examples/2444>\
**Category:** General\
**Created:** [August 28, 2023, 8:02pm UTC](https://forum.magicleap.cloud/t/why-was-the-light-detection-example-dropped-from-examples/2444 "2023-08-28T20:02:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![janikows](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@janikows](https://forum.magicleap.cloud/u/janikows)\
**Post date:** [August 28, 2023, 8:02pm UTC](https://forum.magicleap.cloud/t/why-was-the-light-detection-example-dropped-from-examples/2444/1 "2023-08-28T20:02:44Z")

</div>

It was removed because they no longer support it on ML2.

Anyone know why?  
Is there a good work around?

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [August 29, 2023, 6:26pm UTC](https://forum.magicleap.cloud/t/why-was-the-light-detection-example-dropped-from-examples/2444/2 "2023-08-29T18:26:52Z")

</div>

The example was removed because the light sensor can now be accessed using the standard Android Sensor APIs. This allows developers to use the generic API across multiple platforms. In Unity, this sensor can be accessed using the Unity input system. Are you running into any issues when implementing the light detection logic ?
