Update AssetBundleCollector

pull/51/head
hevinci 2022-10-19 19:11:57 +08:00
parent 9b43d36793
commit 88e8e5cd54
1 changed files with 4 additions and 2 deletions

View File

@ -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)
{