Пример #1
0
        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();
            }
        }
Пример #2
0
    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);
        }
    }