Skip to content

MohitSethi99/UnityNotchSolution

Repository files navigation

Build Status CodeFactor

platforms GitHub size

Prerequisites

Packages : Device Simulator (For testing inside editor)

Features

  • Easy To Use Notch Solution
  • Plug and Play

NotchIssue
Notch issue

NotchSolution
Notch Solution

Setting Up

  • Grab the latest release from Here and import it.
  • Make a new gameObject as the child of Background image in the panel and rename it to SafeAreaHolder.
  • Attach The SafeArea Script To SafeAreaHolder gameObject.
  • Shift all your UI gameObjects inside the SafeAreaHolder gameObject making them the children of SafeAreaHolder.
  • Open device simulator and switch to any of the notched devices to test.
  • See the below config for more clarification or open the Demo scene.

Config
Config