Skip to content

konsnos/Simple-Safe-Area

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Safe Area

A simple Safe Area script.

Add it as a component to a GameObject that is child to the root Canvas. It will restrict itself to the Safe Area upon Play.

To be affected from the Safe Area GameObject, children should be anchored to its borders.

This script only works on Play mode.

Installation

  1. Open the Package Manager from Window > Package Manager.
  2. Click the "+" button > Add package from git URL.
  3. Enter the following URL:
https://github.com/konsnos/Simple-Safe-Area.git?path=Assets/SimpleSafeArea

Alternatively, open Packages/manifest.json and add the following to the dependencies block:

{
    "dependencies": {
        "com.konsnos.simplesafearea": "https://github.com/konsnos/Simple-Safe-Area.git?path=Assets/SimpleSafeArea"
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages