private void UpdateInfo() { string xm = Xml.ToXmlString(Info); File.WriteAllText(EditorInfoPath, xm); AssetDatabase.Refresh(); Info = Xml.ToObject <ABEditorInfo>(File.ReadAllText(EditorInfoPath)); }
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)); }