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.
- control
Camera.rect
- control
Canvas & Sub-Canvas
This project supports both of the above methods and is intended to be applied to various structures.
- Add
SafeAreaConroller
in your root canvas control type
setCanvas Based
- Choose safeArea update timing (can multi-select)
- Add
CanvasPropertyOverrider
in your sub-canvas - If the canvas should be inside the
SafeArea
, checkis Safe Canvas
- Add
SafeAreaConroller
in your root canvas control type
setCamera Based
- Choose safeArea update timing (can multi-select)
- Add
CameraPropertyOverrider
in your camera obejct - If camera screen should be inside the
SafeArea
, checkis Safe Area Camrea
- Support Android
cut off
and soft-key area - Support all rotation
- Add Tester in unity editor
- Show Notch line
- Add new logo
The 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.