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"); }
public override void OnDisable() { window.tmpLayout_ABBuildInfo = abBuildInfoTree.Serialize(); }