Inputs

Unity Safe Area Controller

UnitySafeAreaController

This plugin allows you to easily check and test the Safe Area for iPhone X in Unity Editor

KeyFeature

There are two main ways to support SafeArea on iOS.

  1. control Camera.rect
  2. control Canvas & Sub-Canvas

This project supports both of the above methods and is intended to be applied to various structures.

To Do

How to Use

Canvas based method

  1. Add SafeAreaConroller in your root canvas
  2. control type set Canvas Based
  3. Choose safeArea update timing (can multi-select)
  4. Add CanvasPropertyOverrider in your sub-canvas
  5. If the canvas should be inside the SafeArea, check is Safe Canvas

Camera based method

  1. Add SafeAreaConroller in your root canvas
  2. control type set Camera Based
  3. Choose safeArea update timing (can multi-select)
  4. Add CameraPropertyOverrider in your camera obejct
  5. If camera screen should be inside the SafeArea, check is Safe Area Camrea

License

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.