public static void SaveData(string dataName, string pathName, LogicObjectContainer data) { string path = LogicSystemEditorTools.GetPath(dataName, pathName); string content = JsonUtils.ClassOrStructToJson(data); FileUtils.CreateTextFile(path, content); if (!ResourcePathManager.ContainsFileName(dataName)) { ResourcePathManager.Clear(); } }
private static void UpdateAsset(List <string> paths) { bool isUpdate = false; foreach (var item in paths) { if (item.Contains("Assets/Resources")) { isUpdate = true; break; } } if (isUpdate) { AssetsSortEidtorWindow.RefreshResData(); AssetBundleBuildUtils.CreateAllResPathInfo("Assets/Resources"); ResourcePathManager.Clear(); GlobalEvent.DispatchEvent(EditorGlobalEventEnum.OnResourcesAssetsChange); } }