Original tutorial address
I. Use process
- Add UIRoot (prefab that comes with the framework)
- UIRoot->Design create a UIPanel and make it a Prefab (default Assets/Art/UIPrefabs directory)
- Mark UIHomePanel prefab AssetBundle
- Create UI Code (right click -> @UI-kit Create UI Code)
- Create a UIPanelTester Object and add a UIPanelTester script, filling in the PanelName to open
Second, the API
- UIKit.OpenPanel(canvasLevel,uiData,assetBundleName,assetBundle,prefabName);
- UIKit.ClosePanel();
- UIPanel.CloseSelf();
- UIKit.Push
- UIPanel. Back (Pop)