Methods
load
- load(item: RequestItem, options: IDownloadParseOptions | null, onComplete: CompleteCallback): void
-
Parameters
-
-
options: IDownloadParseOptions | null
-
onComplete: CompleteCallback
Returns void
register
- register(type: string, handler: Unpacker): void
- register(map: Record<string, Unpacker>): void
-
Parameters
Returns void
-
Parameters
Returns void
unpack
- unpack(pack: string[], data: any, type: string, options: IDownloadParseOptions, onComplete: CompleteCallback): void
-
Parameters
-
pack: string[]
-
data: any
-
type: string
-
options: IDownloadParseOptions
-
onComplete: CompleteCallback
Returns void
unpackJson
- unpackJson(pack: string[], json: any, options: IDownloadParseOptions, onComplete: CompleteCallback<Record<string, any>>): void
-
Parameters
-
pack: string[]
-
json: any
-
options: IDownloadParseOptions
-
onComplete: CompleteCallback<Record<string, any>>
Returns void
Object literals
Private unpackers
unpackers: object
处理打包资源,包括拆包,加载,缓存等等,这是一个单例, 所有成员能通过
cc.assetManager.packManager
访问