BuildAssetBundleOptions 资源包编译选项

    public enum BuildAssetBundleOptions
    {
        //
        // 摘要:
        //     Build assetBundle without any special option.
        None = 0,
        //
        // 摘要:
        //     Don't compress the data when creating the asset bundle.
        // 对ab不进行数据压缩。输入的ab包会很大,不过输入和加载会很快
        UncompressedAssetBundle = 1,
        //
        // 摘要:
        //     Includes all dependencies.
        // 包含所有依赖关系
        CollectDependencies = 2,
        //
        // 摘要:
        //     Forces inclusion of the entire asset.
        // 强制包括整个资源
        CompleteAssets = 4,
        //
        // 摘要:
        //     Do not include type information within the AssetBundle.
        // 不包含类型信息。发布web平台时,不能使用该选项
        DisableWriteTypeTree = 8,
        //
        // 摘要:
        //     Builds an asset bundle using a hash for the id of the object stored in the asset
        //     bundle.
        // 使每个object具有唯一不变的hashID, 可用于增量式发布AssetBundle
        DeterministicAssetBundle = 16,
        //
        // 摘要:
        //     Force rebuild the assetBundles.
        // 强制重新build所有ab
        ForceRebuildAssetBundle = 32,
        //
        // 摘要:
        //     Ignore the type tree changes when doing the incremental build check.
        // 忽略typetree的变化,不能与DisableWriteTypeTree同时使用
        IgnoreTypeTreeChanges = 64,
        //
        // 摘要:
        //     Append the hash to the assetBundle name.
        // 附加hash到assetbundle名字中
        AppendHashToAssetBundleName = 128,
        //
        // 摘要:
        //     Use chunk-based LZ4 compression when creating the AssetBundle.
        // 使用lz4的格式压缩ab,ab会在加载资源时才进行解压。默认的压缩格式是lzma,它会使用ab在下立即解压。
        ChunkBasedCompression = 256,
        //
        // 摘要:
        //     Do not allow the build to succeed if any errors are reporting during it.
        // 使用严格模式build ab, 有任何非致命的error都不会build成功.
        StrictMode = 512,
        //
        // 摘要:
        //     Do a dry run build.
        DryRunBuild = 1024,
        //
        // 摘要:
        //     Disables Asset Bundle LoadAsset by file name.
        // 不使用FileName来加载ab
        DisableLoadAssetByFileName = 4096,
        //
        // 摘要:
        //     Disables Asset Bundle LoadAsset by file name with extension.
        // 不使用带后缀的文件名来加载ab
        DisableLoadAssetByFileNameWithExtension = 8192
    }
  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

阿海-程序员

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值