Ejemplo n.º 1
0
        private void UpdateInfo()
        {
            string xm = Xml.ToXmlString(Info);

            File.WriteAllText(EditorInfoPath, xm);
            AssetDatabase.Refresh();
            Info = Xml.ToObject <ABEditorInfo>(File.ReadAllText(EditorInfoPath));
        }
Ejemplo n.º 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));
 }