コード例 #1
0
 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);
 }
コード例 #2
0
 public override void OnInspectorGUI()
 {
     if (Setter == null)
     {
         return;
     }
     if (!AllSetters.settersList.Contains(Setter))
     {
         AllSetters.settersList.Add(Setter);
     }
     serializedObject.Update();
     if (!HeaderEditor.Init(out var assetPath))
     {
         return;
     }
     OptionEditor.Init();
     GroupsEditor.Init();
     LabelsEditor.Init();
     Lists(assetPath);
     ListDisplayEditor.Init();
     ButtonsEditor.Init();
     serializedObject.Update();
 }