From b4c190efb7883868490322ff17e5b434cfcf1877 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 17 Oct 2022 14:53:22 +0800 Subject: [PATCH] Update SimulateBuild --- .../Editor/AssetBundleBuilder/AssetBundleSimulateBuilder.cs | 4 ++-- .../Runtime/PatchSystem/PlayMode/EditorSimulateModeHelper.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleSimulateBuilder.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleSimulateBuilder.cs index 90704b1..6b1d784 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleSimulateBuilder.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleSimulateBuilder.cs @@ -7,7 +7,7 @@ namespace YooAsset.Editor /// /// 模拟构建 /// - public static string SimulateBuild(string packageName, bool enableAddressable) + public static string SimulateBuild(string packageName) { string defaultOutputRoot = AssetBundleBuilderHelper.GetDefaultOutputRoot(); BuildParameters buildParameters = new BuildParameters(); @@ -15,7 +15,7 @@ namespace YooAsset.Editor buildParameters.BuildTarget = EditorUserBuildSettings.activeBuildTarget; buildParameters.BuildMode = EBuildMode.SimulateBuild; buildParameters.BuildPackage = packageName; - buildParameters.EnableAddressable = enableAddressable; + buildParameters.EnableAddressable = AssetBundleCollectorSettingData.Setting.EnableAddressable; AssetBundleBuilder builder = new AssetBundleBuilder(); var buildResult = builder.Run(buildParameters); diff --git a/Assets/YooAsset/Runtime/PatchSystem/PlayMode/EditorSimulateModeHelper.cs b/Assets/YooAsset/Runtime/PatchSystem/PlayMode/EditorSimulateModeHelper.cs index 0815cc3..31063a5 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/PlayMode/EditorSimulateModeHelper.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/PlayMode/EditorSimulateModeHelper.cs @@ -10,12 +10,12 @@ namespace YooAsset /// /// 编辑器下模拟构建补丁清单 /// - public static string SimulateBuild(string packageName, bool enableAddressable) + public static string SimulateBuild(string packageName) { if (_classType == null) _classType = Assembly.Load("YooAsset.Editor").GetType("YooAsset.Editor.AssetBundleSimulateBuilder"); - string manifestFilePath = (string)InvokePublicStaticMethod(_classType, "SimulateBuild", packageName, enableAddressable); + string manifestFilePath = (string)InvokePublicStaticMethod(_classType, "SimulateBuild", packageName); return manifestFilePath; }