private static void UpdateAsset(List <string> paths)
    {
        bool isUpdate = false;

        if (paths == null)
        {
            isUpdate = true;
        }
        else
        {
            foreach (var item in paths)
            {
                if (item.Contains("Assets/Resources"))
                {
                    isUpdate = true;
                    break;
                }
            }
        }
        if (isUpdate)
        {
            if (ResourcesConfigManager.GetIsExistResources())
            {
                ResourcesConfigManager.CreateResourcesConfig();
                ResourcesConfigManager.ClearConfig();
                AssetDatabase.Refresh();
                Debug.Log("创建资源路径文件");
            }
        }
    }
Пример #2
0
    public void AddResEndSave()
    {
        bundles.Clear();
        ArrangeBundlesByLayer();

        AddAllResourceBundle();             //添加资源文件
        ArrangeBundlesByLayer();            //整理资源路径

        CreatePackageFile();                //保存编辑器文件
        CheckAndCreatBundelPackageConfig(); //生成资源路径文件

        ResourcesConfigManager.ClearConfig();
    }