Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Camera
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/4
Add to your application the ability to turn on and off the phone's flashlight!
Render pipeline compatibility
The Built-in Render Pipeline is Unityโ€™s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
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
Description

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

Technical details

Supported platforms: Android

Documentation: Included

Native Flashlight for Android Pro

(not enough ratings)
10 users have favourite this asset
(10)
$7.99
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
1.6 MB
Latest version
1.0.2
Latest release date
Oct 24, 2023
Original Unity version
2019.4.10
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright ยฉ 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR