From 88e8e5cd541668165e72f61d52334eb0a4cea222 Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 19 Oct 2022 19:11:57 +0800 Subject: [PATCH] Update AssetBundleCollector --- .../AssetBundleCollector/AssetBundleCollectorSettingData.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorSettingData.cs b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorSettingData.cs index 1a1383e..bacceb5 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorSettingData.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorSettingData.cs @@ -354,12 +354,13 @@ namespace YooAsset.Editor } // 资源包裹编辑相关 - public static void CreatePackage(string packageName) + public static AssetBundleCollectorPackage CreatePackage(string packageName) { AssetBundleCollectorPackage package = new AssetBundleCollectorPackage(); package.PackageName = packageName; Setting.Packages.Add(package); IsDirty = true; + return package; } public static void RemovePackage(AssetBundleCollectorPackage package) { @@ -381,12 +382,13 @@ namespace YooAsset.Editor } // 资源分组编辑相关 - public static void CreateGroup(AssetBundleCollectorPackage package, string groupName) + public static AssetBundleCollectorGroup CreateGroup(AssetBundleCollectorPackage package, string groupName) { AssetBundleCollectorGroup group = new AssetBundleCollectorGroup(); group.GroupName = groupName; package.Groups.Add(group); IsDirty = true; + return group; } public static void RemoveGroup(AssetBundleCollectorPackage package, AssetBundleCollectorGroup group) {