cocos_add_slide_in
Animate UI elements or game objects by sliding them into view from specified directions at scene start. Set the final position first, then apply entrance animation.
Instructions
Slide a node in from off-screen at scene start.
from_side: "left" / "right" / "top" / "bottom".
The end pose is the node's CURRENT _lpos — set the final
position first, then call this to animate the entrance.
Returns {clip_uuid, clip_path, anim_component_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| from_side | No | bottom | |
| distance | No | ||
| duration | No | ||
| delay | No | ||
| rel_dir | No |