cocos_add_page_view_indicator
Add a visual indicator to track page position in Cocos Creator PageView components. Attach a row of dots that automatically updates as users navigate between pages.
Instructions
Attach cc.PageViewIndicator — dots row that tracks PageView position.
Attach to a child of the PageView node. Engine auto-spawns one
indicator sprite per page using sprite_frame_uuid as template.
direction: 0=HORIZONTAL (default), 1=VERTICAL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| sprite_frame_uuid | No | ||
| direction | No | ||
| cell_width | No | ||
| cell_height | No | ||
| spacing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |