mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-22 00:11:41 +00:00
38 lines
888 B
C#
38 lines
888 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace YooAsset.Editor
|
|
{
|
|
public class CollectResult
|
|
{
|
|
/// <summary>
|
|
/// 收集命令
|
|
/// </summary>
|
|
public CollectCommand Command { private set; get; }
|
|
|
|
/// <summary>
|
|
/// 着色器统一全名称
|
|
/// </summary>
|
|
public string ShadersBundleName { private set; get; }
|
|
|
|
/// <summary>
|
|
/// 收集的资源信息列表
|
|
/// </summary>
|
|
public List<CollectAssetInfo> CollectAssets { private set; get; }
|
|
|
|
|
|
public CollectResult(CollectCommand command)
|
|
{
|
|
Command = command;
|
|
|
|
// 着色器统一全名称
|
|
var packRuleResult = DefaultPackRule.CreateShadersPackRuleResult();
|
|
ShadersBundleName = packRuleResult.GetMainBundleName(command.PackageName, command.UniqueBundleName);
|
|
}
|
|
|
|
public void SetCollectAssets(List<CollectAssetInfo> collectAssets)
|
|
{
|
|
CollectAssets = collectAssets;
|
|
}
|
|
}
|
|
} |