1_guide:2_makeholder
Workflow
2, Make an UI Holder(Panel)
Part1
- Add an new ui panel type which refer to an ui panle category onto UIHandler.cs
public enum UIPanelType { /// <summary> /// Basic = 101 /// Global = 200 /// Map = 1000 /// Battle = 2000 /// </summary> None = 0, //Basic --------------------------------------------------- [UIPrefabDesc("UI_DialogBG_A_0", UIPanelClass.Basic)] [UIPrefabDesc("UI_DialogBG_A_25", UIPanelClass.Basic)] [UIPrefabDesc("UI_DialogBG_Nomal_75", UIPanelClass.Basic)] DialogBG = 51, [UIPrefabDesc("UI_CheckDialog", UIPanelClass.Dlg, UIEnum_DlgBG.Normal)] CheckDialog = 52, ... ... [UIPrefabDesc("UI_Samples", UIPanelClass.Test)] Samples = 10000, }
- Update the uiscenedefault.txt with setting current panel as the original scene's default ui
- Update the uilayerpanel.txt
Part2
1_guide/2_makeholder.txt · Last modified: 2024/06/18 13:42 by 127.0.0.1