Define.cs 1.4 KB

123456789101112131415161718192021222324252627282930
  1. namespace XGame.Framework.Asset
  2. {
  3. public static class Define
  4. {
  5. public const string SIMULATE_ASSETBUNDLE_EDITOR_KEY = "SimulateAssetBundles";
  6. /// <summary>
  7. /// 后缀名,scriptablebuildpipeline打的包没有后缀
  8. /// </summary>
  9. public const string BUNDLE_VARIANT = "bundle";
  10. /// <summary>
  11. /// 923527978
  12. /// ProductAssetManifest.asset_AssetBundleManifest.asset_AssetReferenceManifest.asset生成
  13. /// </summary>
  14. public const string MANIFEST_BUNDLE_NAME = "923527978";
  15. public const string ASSET_BUNDLE_MANIFEST = "AssetBundleManifest";
  16. public const string SCENE_BUNDLE_MANIFEST = "SceneAssetBundleManifest";
  17. public const string ASSET_REFERENCE_MANIFEST = "AssetReferenceManifest";
  18. public const string PRODUCT_ASSET_MANIFEST = "ProductAssetManifest";
  19. public const string BUILTIN_ASSET_MANIFEST = "BuiltInAssetManifest";
  20. public const string ALPHA_TEXTURE_MANIFEST = "AlphaTextureManifest";
  21. /// <summary>
  22. /// kcmanifest的偏移值
  23. /// </summary>
  24. public const int MANIFEST_BUNDLE_OFFSET = 9;
  25. /// <summary>
  26. /// manifestBundle全名
  27. /// </summary>
  28. public static string MANIFEST_BUNDLE_FULLNAME => string.IsNullOrEmpty(BUNDLE_VARIANT) ? MANIFEST_BUNDLE_NAME : $"{MANIFEST_BUNDLE_NAME}.{BUNDLE_VARIANT}";
  29. }
  30. }