CollectAssetInfo.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. namespace YooAsset.Editor
  4. {
  5. public class CollectAssetInfo
  6. {
  7. /// <summary>
  8. /// 收集器类型
  9. /// </summary>
  10. public ECollectorType CollectorType { private set; get; }
  11. /// <summary>
  12. /// 资源包名称
  13. /// </summary>
  14. public string BundleName { private set; get; }
  15. /// <summary>
  16. /// 可寻址地址
  17. /// </summary>
  18. public string Address { private set; get; }
  19. /// <summary>
  20. /// 资源路径
  21. /// </summary>
  22. public string AssetPath { private set; get; }
  23. /// <summary>
  24. /// 资源分类标签
  25. /// </summary>
  26. public List<string> AssetTags { private set; get; }
  27. /// <summary>
  28. /// 是否为原生资源
  29. /// </summary>
  30. public bool IsRawAsset { private set; get; }
  31. /// <summary>
  32. /// 依赖的资源列表
  33. /// </summary>
  34. public List<string> DependAssets = new List<string>();
  35. public CollectAssetInfo(ECollectorType collectorType, string bundleName, string address, string assetPath, List<string> assetTags, bool isRawAsset)
  36. {
  37. CollectorType = collectorType;
  38. BundleName = bundleName;
  39. Address = address;
  40. AssetPath = assetPath;
  41. AssetTags = assetTags;
  42. IsRawAsset = isRawAsset;
  43. }
  44. }
  45. }