Esempio n. 1
0
    public static void BuildBundleName_UI()
    {
        ////打包UI
        ScanAssets.ScanDependencies("ABResources/UI", new List <string>()
        {
            ".asset", ".prefab", ".xml", ".json", ".png", ".mat"
        }, null, HandlDataResources);

        //打包PIC
        ScanAssets.ScanDependencies("ABResources/Pic", new List <string>()
        {
            ".jpg", ".tga", ".png"
        }, null, HandlDataResources);
    }
    public static void ClearAllBundleNameMenu()
    {
        //清除ABResources
        ScanAssets.ScanDependencies(Path.Combine(Application.dataPath, ABPathHelper.ABResourcePrefix), null, null, HandleClearSelect);

        //清除Data
        ScanAssets.ScanDependencies(Path.Combine(Application.dataPath, ABPathHelper.DataPrefix), null, null, HandleClearSelect);

        //清除Resources
        ScanAssets.ScanDependencies(Path.Combine(Application.dataPath, ABPathHelper.ResourcePrefix), null, null, HandleClearSelect);

        //AssetDatabase.RemoveUnusedAssetBundleNames();
        AssetDatabase.Refresh();

        Debug.Log("<color=yellow>清除所有AssetBundle名字</color>");
    }
Esempio n. 3
0
 public static void BuildBundleName_Other()
 {
     //打包PathIdMap
     ScanAssets.ScanDependencies("ABResources/AutoGenerate", new List <string>()
     {
         ".xml"
     }, null, HandlDataResources);
     //打包TableConfig
     ScanAssets.ScanDependencies("ABResources/TableConfig", new List <string>()
     {
         ".txt"
     }, null, HandlDataResources);
     //打包GameConfig
     ScanAssets.ScanDependencies("ABResources/GameConfig", new List <string>()
     {
         ".xml", ".txt",
     }, null, HandlDataResources);
 }
Esempio n. 4
0
 //打包脚本
 private static void BuildScriptTag()
 {
     ScanAssets.ScanDependencies("ABResources/Script", null, null, HandleScriptAndItsDepends);
 }