Class: polygon_mask
index / polygon_mask
Class: polygon_mask
多边形遮罩
Remarks
多边形图片遮罩
多边形触摸屏蔽
Hierarchy
Component
↳
polygon_mask
Table of contents
Properties
Accessors
Methods
Properties
mask
• mask: null
| Mask
= null
遮罩组件
Defined in
assets/@framework/@component/mk_polygon_mask.ts:27
shield_touch_b
• shield_touch_b: boolean
= true
屏蔽触摸
Defined in
assets/@framework/@component/mk_polygon_mask.ts:31
Accessors
track_node
• get
track_node(): Node
跟踪节点
Returns
Node
Defined in
assets/@framework/@component/mk_polygon_mask.ts:39
• set
track_node(value_
): void
Parameters
Name | Type |
---|---|
value_ | Node |
Returns
void
Defined in
assets/@framework/@component/mk_polygon_mask.ts:43
offset_v3
• get
offset_v3(): Vec3
偏移坐标
Returns
Vec3
Defined in
assets/@framework/@component/mk_polygon_mask.ts:49
• set
offset_v3(value_v3_
): void
Parameters
Name | Type |
---|---|
value_v3_ | Vec3 |
Returns
void
Defined in
assets/@framework/@component/mk_polygon_mask.ts:53
Methods
onLoad
▸ Protected
onLoad(): void
Returns
void
Overrides
cc.Component.onLoad
Defined in
assets/@framework/@component/mk_polygon_mask.ts:99
start
▸ Protected
start(): void
Returns
void
Overrides
cc.Component.start
Defined in
assets/@framework/@component/mk_polygon_mask.ts:161
onEnable
▸ Protected
onEnable(): void
Returns
void
Overrides
cc.Component.onEnable
Defined in
assets/@framework/@component/mk_polygon_mask.ts:165
onDisable
▸ Protected
onDisable(): void
Returns
void
Overrides
cc.Component.onDisable
Defined in
assets/@framework/@component/mk_polygon_mask.ts:180
update
▸ Protected
update(dt_n_
): void
Parameters
Name | Type |
---|---|
dt_n_ | number |
Returns
void
Overrides
cc.Component.update
Defined in
assets/@framework/@component/mk_polygon_mask.ts:189
onDestroy
▸ Protected
onDestroy(): void
Returns
void
Overrides
cc.Component.onDestroy
Defined in
assets/@framework/@component/mk_polygon_mask.ts:197
update_mask
▸ update_mask(): void
更新遮罩
Returns
void