Unity5.4 Assetbundles官方说明三(AssetBundle资源包的内部结构)

转载请注明出处!

  上一篇介绍了AssetBundle的压缩格式,接下来将说明一下AssetBundle资源的内部结构。(了解即可)

一个AssetBundle资源包本质上是一组对象组合成的一个序列化文件。这个文件有一个稍微不同的结构,结构的不同取决与这是一个普通资源包还是场景包。

普通资源包的结构:

 
场景资源包的结构:

 
资源包的压缩:

 
官方说明(不再翻译):
 The Compressed blocks shown above might have chunk-based compression or stream-based compression. Chunk-based compression (LZ4) means that the original data is split to chunks (subblocks) of equal size and that chunks are compressed independently. You should use this if you want realtime decompression - random read overhead is small. Stream-based compression (LZMA) uses the same dictionary when processing the whole block, it provides the highest possible compression ratio but supports only sequential reads.

     我将在第十一篇中给出完整的项目源码(包括资源的打包、下载资源包、加载资源包、获取资源几依赖资源、使用资源等)。 下一篇将讲解AssetBundle的下载和加载。
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值