This is my simple UnityGameEngine menu management tool and I want to share it with my friends. You can Create some Menus and switch between them and manage them at multiple layers.
- Import Package from Unity Package Manager by selecting
Add package from git URL... - Create your Menu Script as Monobehaviour
- Change Monobehaviour with
MenuViews.MenuView - Assign that to your UI GameObject.
- Manage your menu by some commands like ChangeCurrentView()
using MenuViews;
//MainGameMenu.cs file
public class MainGameMenu : MenuView
{
protected override void Init()
{
//It is MonoBehaviour, init buttons, texts, events, and more...
throw new System.NotImplementedException();
}
//you have these commands in public and static
//ChangeCurrentView<AuthMenu>();
//ChangeToLastView();
//LastView {get;}
//GetCurrentView();
//And more ...
}
//AuthMenu.cs file
public class AuthMenu : MenuView
{
protected override void Init()
{
throw new System.NotImplementedException();
}
}