From 3e6be2f293b650a2c83b42a278f62b3dabe7907e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Thu, 2 Jan 2025 14:10:11 +0800 Subject: [PATCH] update resource package --- .../ResourcePackage/PlayMode/EditorSimulateBuildParam.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/ResourcePackage/PlayMode/EditorSimulateBuildParam.cs b/Assets/YooAsset/Runtime/ResourcePackage/PlayMode/EditorSimulateBuildParam.cs index fe2345d4..5124d75b 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/PlayMode/EditorSimulateBuildParam.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/PlayMode/EditorSimulateBuildParam.cs @@ -6,7 +6,7 @@ namespace YooAsset /// /// 包裹名称 /// - public string PackageName; + public readonly string PackageName; /// /// 模拟构建管线名称 @@ -29,5 +29,10 @@ namespace YooAsset /// 注意:执行方法必须满足 BindingFlags.Public | BindingFlags.Static /// public string InvokeMethodName = "SimulateBuild"; + + public EditorSimulateBuildParam(string packageName) + { + PackageName = packageName; + } } } \ No newline at end of file