From 04bd352a054e23a747f961ecbe95b19a15cb2675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Tue, 27 Aug 2024 15:45:46 +0800 Subject: [PATCH] Update BuildBundleInfo.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 适配unity2019 --- Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs index 994bae9..cbe2245 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs @@ -56,7 +56,11 @@ namespace YooAsset.Editor public string EncryptedFilePath { set; get; } #endregion +#if UNITY_2020_3_OR_NEWER private readonly HashSet _assetPaths = new HashSet(1000); +#else + private readonly HashSet _assetPaths = new HashSet(); +#endif /// /// 参与构建的资源列表