Interface: get_config<T, T2>
小于 1 分钟
Interface: get_config<T, T2>
asset_.get_config
加载配置
Type parameters
Name | Type |
---|---|
T | extends cc.Asset = cc.Asset |
T2 | T |
Table of contents
Properties
Properties
bundle_s
• Optional
bundle_s: string
bundle 名
Default Value
resources
Defined in
assets/@framework/resources/mk_asset.ts:587
progress_f
• Optional
progress_f: (current_n
: number
, total_n
: number
) => void
Type declaration
▸ (current_n
, total_n
): void
进度回调
Parameters
Name | Type | Description |
---|---|---|
current_n | number | 当前进度 |
total_n | number | 总进度 |
Returns
void
Defined in
assets/@framework/resources/mk_asset.ts:589
completed_f
• Optional
completed_f: (error
: null
| Error
, asset
: T2
) => void
Type declaration
▸ (error
, asset
): void
完成回调
Parameters
Name | Type |
---|---|
error | null | Error |
asset | T2 |
Returns
void
Defined in
assets/@framework/resources/mk_asset.ts:597
remote_option
• Optional
remote_option: load_remote_option_type
远程配置,存在配置则为远程资源