public static void BuildAll(string ver, string outPath, BuildTarget target, BuildAssetBundleOptions options) { AssetMode.Rebuild(); var buils = BuildSelect(outPath, AssetMode.GetAllBundleNames(), target, options); string newFileName = outPath + "/" + Path.GetFileName(ResConfig.ResJsonCfgFilePath); if (File.Exists(newFileName)) { File.Delete(newFileName); } File.Copy(ResConfig.ResJsonCfgFilePath, newFileName, true); BuildABVersionInfo(outPath, ver, buils); GC.Collect(); Resources.UnloadUnusedAssets(); AssetDatabase.Refresh(); }
protected override TreeViewItem BuildRoot() { mRoot = new TreeViewItem(); mRoot.id = -1; mRoot.depth = -1; mRoot.children = new List <TreeViewItem>(); int id = 0; foreach (string name in AssetMode.GetAllBundleNames()) { id++; var t = new TreeViewItem(id, id, name); mRoot.AddChild(t); } return(mRoot); }