cocos_add_scroll_bar
Attach a scroll bar indicator to a ScrollView component in Cocos Creator. Configure direction, auto-hide behavior, and link to handle sprites for UI navigation controls.
Instructions
Attach cc.ScrollBar — companion scroll indicator for a ScrollView.
direction: 0=HORIZONTAL (default), 1=VERTICAL.
Pass scroll_view_id + handle_sprite_id to wire both
references at attach time; otherwise set later via link_property.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| handle_sprite_id | No | ||
| scroll_view_id | No | ||
| direction | No | ||
| enable_auto_hide | No | ||
| auto_hide_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |