CollectCommand.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. 
  2. namespace YooAsset.Editor
  3. {
  4. public class CollectCommand
  5. {
  6. /// <summary>
  7. /// 包裹名称
  8. /// </summary>
  9. public string PackageName { private set; get; }
  10. /// <summary>
  11. /// 忽略规则实例
  12. /// </summary>
  13. public IIgnoreRule IgnoreRule { private set; get; }
  14. /// <summary>
  15. /// 模拟构建模式
  16. /// </summary>
  17. public bool SimulateBuild { set; get; }
  18. /// <summary>
  19. /// 资源包名唯一化
  20. /// </summary>
  21. public bool UniqueBundleName { set; get; }
  22. /// <summary>
  23. /// 使用资源依赖数据库
  24. /// </summary>
  25. public bool UseAssetDependencyDB { set; get; }
  26. /// <summary>
  27. /// 启用可寻址资源定位
  28. /// </summary>
  29. public bool EnableAddressable { set; get; }
  30. /// <summary>
  31. /// 资源定位地址大小写不敏感
  32. /// </summary>
  33. public bool LocationToLower { set; get; }
  34. /// <summary>
  35. /// 包含资源GUID数据
  36. /// </summary>
  37. public bool IncludeAssetGUID { set; get; }
  38. /// <summary>
  39. /// 自动收集所有着色器
  40. /// </summary>
  41. public bool AutoCollectShaders { set; get; }
  42. private AssetDependencyCache _assetDependency;
  43. public AssetDependencyCache AssetDependency
  44. {
  45. get
  46. {
  47. if (_assetDependency == null)
  48. _assetDependency = new AssetDependencyCache(UseAssetDependencyDB);
  49. return _assetDependency;
  50. }
  51. }
  52. public CollectCommand(string packageName, IIgnoreRule ignoreRule)
  53. {
  54. PackageName = packageName;
  55. IgnoreRule = ignoreRule;
  56. }
  57. }
  58. }