跳至主要內容

Interface: get_config<T, T2>

muzzik小于 1 分钟

index / asset_ / get_config

Interface: get_config<T, T2>

asset_.get_config

加载配置

Type parameters

NameType
Textends cc.Asset = cc.Asset
T2T

Table of contents

Properties

Properties

bundle_s

Optional bundle_s: string

bundle 名

Default Value

resources

Defined in

assets/@framework/resources/mk_asset.ts:587open in new window


progress_f

Optional progress_f: (current_n: number, total_n: number) => void

Type declaration

▸ (current_n, total_n): void

进度回调

Parameters
NameTypeDescription
current_nnumber当前进度
total_nnumber总进度
Returns

void

Defined in

assets/@framework/resources/mk_asset.ts:589open in new window


completed_f

Optional completed_f: (error: null | Error, asset: T2) => void

Type declaration

▸ (error, asset): void

完成回调

Parameters
NameType
errornull | Error
assetT2
Returns

void

Defined in

assets/@framework/resources/mk_asset.ts:597open in new window


remote_option

Optional remote_option: load_remote_option_type

远程配置,存在配置则为远程资源

Defined in

assets/@framework/resources/mk_asset.ts:599open in new window

📣 觉得很赞?分享给你的朋友吧!