Skip to content

Unity plugin to automatically resize canvas when notch exist

License

Notifications You must be signed in to change notification settings

hychul/Unity-SafeCanvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

SafeAreaCanvas

unity_version license

Unity plugin to handle safe area super easily :D

Getting Start

SafeAreaCanvas component require UGUI's Canvas component. So it is recommended that you first set the UGUI's Canvas component and then add SafeAreaCanvas.

Options

  • Safe Horizontal : Adjust canvas elements with safe area's horizontal value.
  • Safe Vertical : Adjust canvas elements with safe area's vertical value.
  • Cover Unsafe Area : Cover unsafe area with static color : Cover Color.

Running the simulation

To simulate safe area canvas, just set example orientation and push the 'Show Notch' button. That's all!

Caution

SafeAreaCanvas generate 'Safe Root' when simulate notch. This is used as root to adjust size of canvas in SafeAreaCanvas. So if you create new UI element out of this root, that element doesn't support safe area.

About

Unity plugin to automatically resize canvas when notch exist

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages