Over 11,000 five-star assets
Rated by 85,000+ customers
Supported by 100,000+ forum members
Every asset moderated by Unity
Unity Version | Built-in | URP | HDRP |
---|---|---|---|
2023.1.0f1 | Compatible | Compatible | Compatible |
2022.1.10f1 | Compatible | Compatible | Compatible |
2021.2.0f1 | Compatible | Compatible | Compatible |
2020.3.0f1 | Compatible | Compatible | Compatible |
2019.4.10f1 | Compatible | Compatible | Compatible |
Most of the cameras on the phone have an LED flash that can be used as a flashlight. This tool will allow you to turn on the flashlight on a variety of android versions. To do this, the code uses different approaches depending on the API level of the phone.
๐ The flashlight is switched on and off in one line of code.
๐ If you want to use this tool together with the Vuforia Engine, then the asset contains instructions with a couple of simple steps on how to do it.
๐ Permission to use the camera to operate the flashlight is granted directly from the application, if necessary.
The flashlight has been tested on these Android versions:
- 4.4.2 (ZTE Blade L370);
- 9 (HUAWEI P smart);
- 11 (Galaxy A52, HUAWEI nova 9, Xiaomi POCO M3);
- 12 (POCO X3 Pro).
The demo scene uses a toggle switch that is pleasant to use, as well as a button that allows you to change the flicker frequency.
Below you can find a link to the apk file to make sure the asset is working properly for you.
๐ Documentation.pdf
๐ฎ Demo App.apk
Native Flashlight for Android Pro
