static void BackUpSettings() { if (null == buildSetting) { buildSetting = new AssetBundleBuildSetting(); } SerializeObjToXML <AssetBundleBuildSetting>(buildSetting, Application.dataPath + "/Editor/Config/Settings/AssetBundleBuildSetting.xml"); AssetDatabase.Refresh(); }
static void LoadSettings() { if (null == buildSetting) { buildSetting = new AssetBundleBuildSetting(); } AssetBundleBuildSetting AS = DeserializeObjFromXML <AssetBundleBuildSetting>(Application.dataPath + "/Editor/Config/Settings/AssetBundleBuildSetting.xml"); if (null != AS) { buildSetting = AS; } }