Home

Awesome

<p align="center"> <img align="center" src="https://raw.githubusercontent.com/coryleach/UnityPackages/master/Documentation/GameframeFace.gif" /> </p> <h1 align="center">Gameframe.GUI 👋</h1> <!-- BADGE-START --> <p> <img alt="Version" src="https://img.shields.io/badge/version-3.0.6-blue.svg?cacheSeconds=2592000" /> <a href="https://twitter.com/Cory Leach"> <img alt="Twitter: coryleach" src="https://img.shields.io/twitter/follow/coryleach.svg?style=social" target="_blank" /> </a> </p> <!-- BADGE-END -->

This is a library of GUI helpers for UGUI
Includes a panel system that implements a navigation stack.
Includes a scene transition system.
Includes a SRP shader for blurring the background of UI panels.

Quick Package Install

Using UnityPackageManager (for Unity 2019.3 or later)

Open the package manager window (menu: Window > Package Manager)<br/> Select "Add package from git URL...", fill in the pop-up with the following link:<br/> https://github.com/coryleach/UnityGUI.git#3.0.12<br/>

Using UnityPackageManager (for Unity 2019.1 or later)

Find the manifest.json file in the Packages folder of your project and edit it to look like this:

{
  "dependencies": {
    "com.gameframe.gui": "https://github.com/coryleach/UnityGUI.git#3.0.12",
    ...
  },
}
<!-- DOC-START --> <!-- Changes between 'DOC START' and 'DOC END' will not be modified by readme update scripts -->

Usage

After importing this package via the PackageManager import the Demo/Demo.unitypackage file from the Assets->Import Package option in the menu.

PanelView

PanelView which provides Show & Hide behavior which can be instant or async and awaitable.

AnimatedPanelView

References one or more IPanelAnimator components to control animate the Show & Hide of a panel. If you await the Show & Hide async methods

PanelViewController

Controller for the display of a PanelView.

PanelViewControllerBehaviour

A version of PanelViewController that is also a MonoBehaviour component that can be added to a game object. Often you may want to set up & configure PanelViewControllers with data other than the panel type and using this class will allow you to do that in editor.

PanelStackSystem

A scriptable object representation of a panel stack. Main purpose is in maintaining the navigation history of a menu. Push and Pop panel controllers onto this stack. If any PanelViewStackController component that subscribes to the PanelStackSystem will respond to the push and show/hide the corresponding panels. Generally the top PanelViewController on the stack is always visible.

PanelViewStackController

A MonoBehaviour that references a PanelStackSystem. It responds to changes in the panel stack by getting the current showing and hiding controllers. It will then perform the necessary transitions.

PanelViewControllerProvider

A scriptable object which services is a collection of PanelViewControllers. Generally you register PanelViewControllerBehaviour with a provider so that you can push them using the PanelPusher component. It also controls the location that views are parented to in the hierarchy.

PanelViewControllerRegisterer

Add this component to a PanelViewControllerBehaviour to register the controller with a PanelViewControllerProvider instance.

PanelType

Contains information about a panel and is used by the PanelViewController to locate the prefab and instantiate the PanelView.

<!-- DOC-END -->

Author

👤 Cory Leach

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by Gameframe.Packages