cocos_add_mask
Attach a mask component to nodes in Cocos Creator scenes to define visible areas using rectangle, ellipse, or stencil shapes for visual effects.
Instructions
Attach cc.Mask. mask_type: 0=RECT, 1=ELLIPSE, 2=GRAPHICS_STENCIL, 3=SPRITE_STENCIL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| mask_type | No | ||
| inverted | No | ||
| segments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |