跳至主要內容

Class: polygon_mask

muzzik大约 1 分钟

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:27open in new window


shield_touch_b

shield_touch_b: boolean = true

屏蔽触摸

Defined in

assets/@framework/@component/mk_polygon_mask.ts:31open in new window

Accessors

track_node

get track_node(): Node

跟踪节点

Returns

Node

Defined in

assets/@framework/@component/mk_polygon_mask.ts:39open in new window

set track_node(value_): void

Parameters

NameType
value_Node

Returns

void

Defined in

assets/@framework/@component/mk_polygon_mask.ts:43open in new window


offset_v3

get offset_v3(): Vec3

偏移坐标

Returns

Vec3

Defined in

assets/@framework/@component/mk_polygon_mask.ts:49open in new window

set offset_v3(value_v3_): void

Parameters

NameType
value_v3_Vec3

Returns

void

Defined in

assets/@framework/@component/mk_polygon_mask.ts:53open in new window

Methods

onLoad

Protected onLoad(): void

Returns

void

Overrides

cc.Component.onLoad

Defined in

assets/@framework/@component/mk_polygon_mask.ts:99open in new window


start

Protected start(): void

Returns

void

Overrides

cc.Component.start

Defined in

assets/@framework/@component/mk_polygon_mask.ts:161open in new window


onEnable

Protected onEnable(): void

Returns

void

Overrides

cc.Component.onEnable

Defined in

assets/@framework/@component/mk_polygon_mask.ts:165open in new window


onDisable

Protected onDisable(): void

Returns

void

Overrides

cc.Component.onDisable

Defined in

assets/@framework/@component/mk_polygon_mask.ts:180open in new window


update

Protected update(dt_n_): void

Parameters

NameType
dt_n_number

Returns

void

Overrides

cc.Component.update

Defined in

assets/@framework/@component/mk_polygon_mask.ts:189open in new window


onDestroy

Protected onDestroy(): void

Returns

void

Overrides

cc.Component.onDestroy

Defined in

assets/@framework/@component/mk_polygon_mask.ts:197open in new window


update_mask

update_mask(): void

更新遮罩

Returns

void

Defined in

assets/@framework/@component/mk_polygon_mask.ts:204open in new window

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