View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 2020.3.21 or later
- Package size
- 40 KB
- Files
- 7
- Favorites
- 4
- Views in the past week
- 6
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $19.99 on
Keywords
iOS Ambient Light Sensor
iOS Ambient Light Sensor
Price $19.99
Buy on Asset Store (opens in new tab)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 1
iOS Ambient Light Sensor video 1
About this asset
Apple does not allow developers to access the ambient light sensor on iOS devices. This asset implements a workaround for those who still need to estimate environmental brightness. It will look at frames from the front facing camera to make an estimate.
From the publisher's Asset Store listing.
Technical details
- Provides estimated scene lighting using frames from front facing camera
- Native swift interface for camera access
- Users will need to approve camera access and you will need to explain why in your build settings
- Example scene (TMP package required)
- Easy to implement (two lines of code)
- Apple-approved method
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2020.3.21f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.