示例#1
0
        private void UpdateInfo()
        {
            string xm = Xml.ToXmlString(Info);

            File.WriteAllText(EditorInfoPath, xm);
            AssetDatabase.Refresh();
            Info = Xml.ToObject <ABEditorInfo>(File.ReadAllText(EditorInfoPath));
        }
示例#2
0
 private void LoadCollectInfo()
 {
     EditorInfoPath = EditorEnv.frameworkPath.CombinePath("AssetBundle/Editor/ABEditorInfo.xml");
     if (!File.Exists(EditorInfoPath))
     {
         string xm = Xml.ToXmlString(new ABEditorInfo());
         File.WriteAllText(EditorInfoPath, xm);
         AssetDatabase.Refresh();
     }
     Info = Xml.ToObject <ABEditorInfo>(File.ReadAllText(EditorInfoPath));
 }