private void OnEnable() { if (target == null) { return; } Setter = (Setter)target; HeaderEditor = new HeaderEditor <Setter>(this); OptionEditor = new OptionEditor <Setter>(this); GroupsEditor = new GroupsEditor <Setter>(this); LabelsEditor = new LabelsEditor(this); ListsEditor = new ListsEditor <Setter>(this); ListDisplayEditor = new ListDisplayEditor <Setter>(this); ButtonsEditor = new ButtonsEditor(this); }
private void Lists(string assetPath) { if (Setter.AssetCount <= 0) { return; } EditorGUI.BeginChangeCheck(); var status = $"Asset Found @ {assetPath} Asset Count : {Setter.AssetCount}"; var autoUpdate = ListsEditor.Init(status, new Dictionary <string, Tuple <List <AData>, AutoLoad> > { { nameof(Setter.noAutoLoadList), new Tuple <List <AData>, AutoLoad>(Setter.noAutoLoadList, AutoLoad.None) }, { nameof(Setter.onAwakeList), new Tuple <List <AData>, AutoLoad>(Setter.onAwakeList, AutoLoad.OnAwake) }, { nameof(Setter.onStartList), new Tuple <List <AData>, AutoLoad>(Setter.onStartList, AutoLoad.OnStart) } }); if (!EditorGUI.EndChangeCheck() || !autoUpdate) { return; } Setter.Update(); }
private void OnEnable() { if (target == null) return; GlobalList = (GlobalList)target; ListsEditor = new ListsEditor<GlobalList>(this, true); }