void OnExportAllHandler(object data) { var node = data as NodeGraph; var bytes = NodeGraph.CreateInBinary(node); var path = Application.dataPath + AI.TREE_OUTPUTPATH + node.OutPutPath + ".bytes"; File.WriteAllBytes(path, bytes); EditorUtility.DisplayDialog("提示", "导出成功" + path, "ok"); AssetDatabase.Refresh(); }