Download request item, If item is not in any package, download as usual. Otherwise, download the corresponding package and unpack it. And then retrieve the corresponding content form it.
Some item you want to download
Some optional parameters
Callback when finished
Register custom handler if you want to change default behavior or extend packManager to unpack other format pack
Extension likes '.bin' or map likes {'.bin': binHandler, '.ab': abHandler}
handler
Use corresponding handler to unpack package
The uuid of packed assets
The packed data
The type indicates that which handler should be used to download, such as '.jpg'
Some optional parameter
callback when finishing unpacking
Unpack the json, revert to what it was before packing
The pack
The content of pack
Some optional parameters
Callback when finish unpacking
Generated using TypeDoc
Handle the packed asset, include unpacking, loading, cache and so on. It is a singleton. All member can be accessed with
cc.assetManager.packManager