Animation


Description:

[ CCode ( has_construct_function = false ) ]
public Animation ()

Creates a new Animation instance.

Note:

Use PropertyTransition instead

You should set the Object to be animated using set_object, set the duration with set_duration and the easing mode using set_mode.

Use bind or bind_interval to define the properties to be animated. The interval and the animated properties can be updated at runtime.

The animate and relative family of functions provide an easy way to animate a Actor and automatically manage the lifetime of a Animation instance, so you should consider using those functions instead of manually creating an animation.

Returns:

the newly created Animation. Use unref to release the associated resources