跳至主要內容

Class: switch_scene_config

muzzik小于 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

NameType
init_?Partial<switch_scene_config>

Defined in

assets/@framework/resources/mk_bundle.ts:523open in new window

Properties

bundle_s

bundle_s: string

bundle名

Remarks

getBundle 时使用

Defined in

assets/@framework/resources/mk_bundle.ts:532open in new window


preload_b

Optional preload_b: boolean

预加载

Defined in

assets/@framework/resources/mk_bundle.ts:534open in new window


before_load_callback_f

Optional before_load_callback_f: OnBeforeLoadScene

加载前调用的函数

Defined in

assets/@framework/resources/mk_bundle.ts:543open in new window


launched_callback_f

Optional launched_callback_f: OnSceneLaunched

启动后调用的函数

Defined in

assets/@framework/resources/mk_bundle.ts:545open in new window


unloaded_callback_f

Optional unloaded_callback_f: OnUnload

场景卸载后回调

Defined in

assets/@framework/resources/mk_bundle.ts:547open in new window

Methods

progress_callback_f

Optional progress_callback_f(finish_n, total_n, item?): void

加载进度回调

Parameters

NameTypeDescription
finish_nnumber完成数量
total_nnumber总数量
item?RequestItem当前项目

Returns

void

Defined in

assets/@framework/resources/mk_bundle.ts:541open in new window

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