cocos_add_scroll_view
Add scrollable functionality to UI elements in Cocos Creator scenes by attaching a ScrollView component with configurable direction, inertia, and bounce settings.
Instructions
Attach cc.ScrollView. content_id points to the scrollable content node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| content_id | No | ||
| horizontal | No | ||
| vertical | No | ||
| inertia | No | ||
| brake | No | ||
| elastic | No | ||
| bounce_duration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |