Class: layer
index / layer
Class: layer
层级管理
Remarks
动态多类型层级划分
支持类型层级细粒度划分
Hierarchy
Component
↳
layer
↳↳
life_cycle
Table of contents
Properties
Accessors
Methods
Properties
config
▪ Static
config: global_config
Defined in
assets/@framework/module/mk_layer.ts:39
layer_type_n
• layer_type_n: number
= 0
层类型
Defined in
assets/@framework/module/mk_layer.ts:64
_use_layer_b
• Protected
_use_layer_b: boolean
= true
使用 layer
Default Value
true
Remarks
false:关闭 layer 功能
Defined in
assets/@framework/module/mk_layer.ts:94
Accessors
init_editor
• get
init_editor(): void
初始化编辑器
Returns
void
Defined in
assets/@framework/module/mk_layer.ts:49
child_layer_n
• get
child_layer_n(): number
层级
Returns
number
Defined in
assets/@framework/module/mk_layer.ts:77
• set
child_layer_n(value_n_
): void
Parameters
Name | Type |
---|---|
value_n_ | number |
Returns
void
Defined in
assets/@framework/module/mk_layer.ts:81
Methods
set_layer_refresh_interval
▸ Static
set_layer_refresh_interval(node_
, interval_ms_n_
, recursion_b_?
): void
设置层级刷新间隔
Parameters
Name | Type | Default value | Description |
---|---|---|---|
node_ | Node | undefined | 节点 |
interval_ms_n_ | number | undefined | 间隔时间(毫秒) |
recursion_b_ | boolean | false | 递归 |
Returns
void
Remarks
设置 node_ 的子节点将延迟 interval_ms_n_ 时间后更新层级
Defined in
assets/@framework/module/mk_layer.ts:109
onLoad
▸ Protected
onLoad(): void
Returns
void
Overrides
cc.Component.onLoad
Defined in
assets/@framework/module/mk_layer.ts:126
_init_editor
▸ Protected
_init_editor(): void
初始化编辑器
Returns
void