{"repo":"artstorm/ui-toolkit-safe-area","free":true,"listed":false,"github":"https://github.com/artstorm/ui-toolkit-safe-area","clone":"git clone https://github.com/artstorm/ui-toolkit-safe-area.git","description":"A Safe Area Container for Unity's UI Toolkit.","language":"C#","stars":109,"topics":["unity","unity3d","game-development","safe-area","safearea","ui","ui-toolkit","uitoolkit","gamedev"],"license":"MIT","category":"game-templates","readme_excerpt":"UI Toolkit Safe Area Provides a Safe Area Container for Unity's UI Toolkit. About The goal of the safe area container is to provide a custom control to simplify handling safe areas with UI Toolkit on relevant devices. - Option to collapse margins with the safe area. - Option to exclude specific safe area edges. - Option to exclude safe area on tvOS. - Option to force polling for 180-degree orientation flips. Usage The SafeArea container is available in the Library in UI Builder and can be found under Project → Custom Controls and can be dragged into the UI hierarchy. The SafeArea container should be added as the top element in the hierarchy to ensure that it can fill up the entire screen. All child elements dropped into the SafeArea container will live inside safe-area-content-container and be adjusted accordingly depending on the current device SafeArea. Margins can be set on the SafeArea container, which can be useful when running on devices that does not utilize a safe area. The SafeArea container has a selection of custom attributes that can be set in the UI Builder inspector. Collapse Margins The container margins and the safe area is collapsed by default. That can be disabled in the inspector. Take a look at these screenshots which helps illustrate the differences how margin, safe area and collapse comes together. In each example the margin is set to 10px 10px 0px 10px . 1. For a device without a safe area, the margin values are used as-is and collapse margins doesn't p","default_branch":null,"files":null,"tree":[],"storefront":"/r/artstorm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/artstorm/ui-toolkit-safe-area/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."}