View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 6000.0.73 or later
- Package size
- 35 KB
- Files
- 3
- Favorites
- 6
- Views in the past week
- 8
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
Safe Area with Custom Offset for UGUI
- Price drop
Safe Area script for Mobile devices with included offset and padding to ensure that your content will look the same on all devices, regardless if there is a notch or not!
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 2
Safe Area with Custom Offset for UGUI screenshot 1
About this asset
There are so many mobile devices from tablets to narrow phones, some don't have notches, others have notches as big as 150 pixels! This may lead to frustration and uncertainty, especially when the content needs to look as uniformed as possible on all devices.
With this script, you can choose an offset, which the safe area will always adhere to, unless the safe area reported by the device is bigger than the offset, in this case the script will move the content further.
It also contains padding which can be also negative, to enable placing of the content inside the safe area outside of it.
Each of the safe area sides can also be ignored.
This script was created after our own work with mobile devices and it contains everything needed to ensure consistency and quality.
From the publisher's Asset Store listing.
Technical details
The script can be placed on any object and reference any UI container.
- Each side can be ignored.
- The script will self-destroy if not needed (no safe area dimensions reported by the device.
- Offset on all sides to always maintain minimum Safe Area for consistency.
- Padding to move content inside the safe area, can be also negative.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 6000.0.73f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.