{"repo":"gilzoide/unity-safe-area-layout","free":true,"listed":false,"github":"https://github.com/gilzoide/unity-safe-area-layout","clone":"git clone https://github.com/gilzoide/unity-safe-area-layout.git","description":"uGUI layout group that makes children respect the Safe Area. It drives children's anchors and supports LayoutElement.ignoreLayout","language":"C#","stars":75,"topics":["layout","safe-area","safearea","ugui","ui","unity","gui","autolayout"],"license":"Unlicense","category":"game-templates","readme_excerpt":"Safe Area Layout Unity GUI layout group that makes children respect the Safe Area. It drives direct children's anchors while in Play Mode and supports LayoutElement.ignoreLayout . Features - Fully integrated with Unity GUI's layout system: only rebuilds the layout when needed, no Update method or coroutines attached - Does not resize it's own RectTransform , so it can be used in objects with a Canvas component directly - Does not demand a full screen RectTransform : the script detects where your rect overlaps with the Safe Area and updates accordingly - Ignore children using a IgnoreSafeArea component or LayoutElement with Ignore Layout marked as true. Useful for background images, for example. - Preview Safe Area adjustments in Editor using any of the Preview Modes in SafeAreaLayoutGroup 's inspector while hovering the Hover to Preview Layout button or while in Play Mode. All Preview Modes support both portrait and landscape resolutions. Screen.safeArea Preview Mode is only applied when using Unity's Device Simulator (in Unity 2020 and older, available as an UPM package) - Only affects canvases in either Screen Space - Overlay or Screen Space - Camera modes, so World Space canvases are ignored - Customize the safe area rectangle by creating a subclass of SafeAreaLayoutGroup and overriding the GetSafeArea() method. This is useful to provide additional spacing to the safe area, for example space occupied by banner ads. Installing Either: - Install using openupm: - Install via ","default_branch":null,"files":null,"tree":[],"storefront":"/r/gilzoide","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gilzoide/unity-safe-area-layout/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}