Class: switch_scene_config
小于 1 分钟
index / bundle_ / switch_scene_config
Class: switch_scene_config
bundle_.switch_scene_config
switch_scene 配置
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new switch_scene_config(init_?
)
Parameters
Name | Type |
---|---|
init_? | Partial <switch_scene_config > |
Defined in
assets/@framework/resources/mk_bundle.ts:523
Properties
bundle_s
• bundle_s: string
bundle名
Remarks
getBundle 时使用
Defined in
assets/@framework/resources/mk_bundle.ts:532
preload_b
• Optional
preload_b: boolean
预加载
Defined in
assets/@framework/resources/mk_bundle.ts:534
before_load_callback_f
• Optional
before_load_callback_f: OnBeforeLoadScene
加载前调用的函数
Defined in
assets/@framework/resources/mk_bundle.ts:543
launched_callback_f
• Optional
launched_callback_f: OnSceneLaunched
启动后调用的函数
Defined in
assets/@framework/resources/mk_bundle.ts:545
unloaded_callback_f
• Optional
unloaded_callback_f: OnUnload
场景卸载后回调
Defined in
assets/@framework/resources/mk_bundle.ts:547
Methods
progress_callback_f
▸ Optional
progress_callback_f(finish_n
, total_n
, item?
): void
加载进度回调
Parameters
Name | Type | Description |
---|---|---|
finish_n | number | 完成数量 |
total_n | number | 总数量 |
item? | RequestItem | 当前项目 |
Returns
void