Ejemplo n.º 1
0
 public void OnGUI()
 {
     this.TextField(ref Name)
     .Button(() => {
         if (!string.IsNullOrEmpty(Name))
         {
             element.AppendChild(Tree.Serialize(element.OwnerDocument, Name));
             element.OwnerDocument.Save(path);
             AssetDatabase.Refresh();
         }
         else
         {
             ShowNotification(new GUIContent("Name isNull"));
         }
     }, "Save");
 }
Ejemplo n.º 2
0
 public override void OnDisable()
 {
     window.tmpLayout_ABBuildInfo = abBuildInfoTree.Serialize();
 }