Skip to content

Components

PropertyAnimation

Plays keyframed numbers onto this node and its children: a door's slide, a light's flicker, a menu's fade. Unlike an Animated Sprite it never touches a picture, only whatever property its .propanim clip names.

On this page

Add it

+ Add node → Property Animation creates a node with it already on. Already have a node for it? Add component → PropertyAnimationComponent.

From a script

A script on the same node writes these fields by name. PropertyAnimationComponent is the name to pass.

rgs
set_text("PropertyAnimationComponent", "clip", "");
set_flag("PropertyAnimationComponent", "playing", false);
set_number("PropertyAnimationComponent", "speed", 1.0);

Fields

FieldScript nameKindDefaultWhat it does
ClipsclipsassetnoneThe .propanim asset this node plays.
ClipcliptextemptyWhich clip is playing, by name.
PlayingplayingcheckboxoffWhether the playhead advances.
Speedspeednumber, step 0.051Playback rate. Negative plays backwards.
Loopingloopingone of AsAuthored, Once, Loop, PingPongAsAuthoredOverride the clip's own loop mode for this node only.