cocos_add_fade_in
Adds a fade-in animation to Cocos Creator scene nodes, creating opacity transitions from transparent to opaque at startup with configurable duration and delay.
Instructions
Fade a node from transparent → opaque at scene start.
Generates a .anim clip in assets/animations/ (override
with rel_dir), attaches cc.UIOpacity (initial 0 so the
first frame doesn't flash), and attaches cc.Animation with
play_on_load=True. delay holds at 0 opacity before the ramp
— useful for staggering sibling fades.
Returns {clip_uuid, clip_path, anim_component_id, opacity_component_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| duration | No | ||
| delay | No | ||
| rel_dir | No |