コード例 #1
0
    static void DisposeResourceFolder()
    {
        string title = "分析Game_Prefab资源";
        int    count = ResourceConst.PackResourceInfoGroups.Length;

        for (int i = 0; i < count; i++)
        {
            ResourceConst.PackResourceInfo info = ResourceConst.PackResourceInfoGroups[i];
            if (info == null)
            {
                continue;
            }

            DisposeFolder(ResourceConst.GetResourcePath(info.path), i, count, title, info.suffix);
        }
        EditorUtility.ClearProgressBar();
    }
コード例 #2
0
    //static void DisposeResourcesFolder()
    //{
    //    string[] resourceGroups = ResourceConst.PackResourceGroups;

    //    string title = "分析resources";
    //    for (int i = 0; i < resourceGroups.Length; i++)
    //    {
    //        //PackAssetBundleUtlis.ShowProgress(i, resourceGroups.Length, "", resourceGroups[i]);
    //        DisposeFolder(ResourceConst.GetResourcePath(resourceGroups[i]), i, resourceGroups.Length, title);
    //    }
    //    EditorUtility.ClearProgressBar();
    //}
    static void DisposeResourcesInfoFolder()
    {
        string title = "分析resources";
        int    count = ResourceConst.PackResourceInfoGroups.Length;

        for (int i = 0; i < count; i++)
        {
            ResourceConst.PackResourceInfo info = ResourceConst.PackResourceInfoGroups[i];
            if (info == null)
            {
                continue;
            }

            //PackAssetBundleUtlis.ShowProgress(i, resourceGroups.Length, "", resourceGroups[i]);
            DisposeFolder(ResourceConst.GetResourcePath(info.path), i, count, title, info.suffix, info.check_dep);
        }
        EditorUtility.ClearProgressBar();
    }