:iphone: uGUI based SafeAreaController for iOS notch design
This plugin allows you to easily check and test the Safe Area for iPhone X in Unity Editor
There are two main ways to support SafeArea on iOS.
Camera.rect
Canvas & Sub-Canvas
This project supports both of the above methods and is intended to be applied to various structures.
SafeAreaConroller
in your root canvascontrol type
set Canvas Based
CanvasPropertyOverrider
in your sub-canvasSafeArea
, check is Safe Canvas
SafeAreaConroller
in your root canvascontrol type
set Camera Based
CameraPropertyOverrider
in your camera obejctSafeArea
, check is Safe Area Camrea
cut off
and soft-key areaThe class is licensed under the MIT License:
Copyright © 2017 Sang Hyeon Kim.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.