Add or Remove Animations

Animatable UI Objects

Adding and removing animations work the same way for each AnimatableUIObject.

On Enable

Adding

// 'animatable' is the AnimatableUIObject
// 'animation' is the UIAnimationData
animatable.AddOnEnableAnimation(animation)

Removing

animatable.RemoveOnEnableAnimation(animation)

On Disable

Adding

animatable.AddOnDisableAnimation(animation)

Removing

animatable.RemoveOnDisableAnimation(animation)

Custom Call

Adding

animatable.AddCustomAnimation(animation)

Removing

animatable.RemoveCustomAnimation(animation)

Animatable Transform

Adding

// 'animatable' is the AnimatableTransform
// 'animation' is the TransformAnimationData
animatable.AddAnimation(animation);

Removing

animatable.RemoveAnimation(animation);

Last updated