Original tutorial address

I. Use process

  1. Add UIRoot (prefab that comes with the framework)
  2. UIRoot->Design create a UIPanel and make it a Prefab (default Assets/Art/UIPrefabs directory)
  3. Mark UIHomePanel prefab AssetBundle
  4. Create UI Code (right click -> @UI-kit Create UI Code)
  5. Create a UIPanelTester Object and add a UIPanelTester script, filling in the PanelName to open

Second, the API

  1. UIKit.OpenPanel(canvasLevel,uiData,assetBundleName,assetBundle,prefabName);
  2. UIKit.ClosePanel();
  3. UIPanel.CloseSelf();
  4. UIKit.Push
  5. UIPanel. Back (Pop)