|
@@ -1,15 +1,13 @@
|
|
using System;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.IO;
|
|
-using System.Linq;
|
|
|
|
using UnityEditor;
|
|
using UnityEditor;
|
|
-using YooAsset.Editor;
|
|
|
|
-using static UnityEditor.Progress;
|
|
|
|
|
|
|
|
namespace GFGEditor
|
|
namespace GFGEditor
|
|
{
|
|
{
|
|
public static class AssetBundleHelper
|
|
public static class AssetBundleHelper
|
|
{
|
|
{
|
|
|
|
+ public static Action BuildHotUpdateDll;
|
|
public const string RES_ROOT_DIR_PATH = "Assets/Res";
|
|
public const string RES_ROOT_DIR_PATH = "Assets/Res";
|
|
public const int LimitByteSize = 1024*1024*4;
|
|
public const int LimitByteSize = 1024*1024*4;
|
|
private static List<string> excludeFileExtensions = new List<string>() { ".meta", ".moc3" , ".can3" };
|
|
private static List<string> excludeFileExtensions = new List<string>() { ".meta", ".moc3" , ".can3" };
|
|
@@ -36,6 +34,7 @@ namespace GFGEditor
|
|
public static void OnPreExecuteBuild()
|
|
public static void OnPreExecuteBuild()
|
|
{
|
|
{
|
|
EditorUtility.DisplayProgressBar("进度", "正在收集资源", 1);
|
|
EditorUtility.DisplayProgressBar("进度", "正在收集资源", 1);
|
|
|
|
+ BuildHotUpdateDll();
|
|
itemsSizeDicDic = new Dictionary<string, Dictionary<string, AssetBundleAssetListItem>>();
|
|
itemsSizeDicDic = new Dictionary<string, Dictionary<string, AssetBundleAssetListItem>>();
|
|
assetBundleCollector = AssetBundleCollector.GetData();
|
|
assetBundleCollector = AssetBundleCollector.GetData();
|
|
|
|
|