Function AnimationCreateMergeAndStartAnimation
-
AnimationCreateMergeAndStartAnimation(
name: string,
node: Node,
targetProperty: string,
framePerSecond: number,
totalFrame: number,
from: any,
to: any,
loopMode?: number,
easingFunction?: EasingFunction,
onAnimationEnd?: () => void,
): Nullable<Animatable>Parameters
- name: string
Name of the animation
- node: Node
Node which contains the scene that begins the animations
- targetProperty: string
Specifies which property to animate
- framePerSecond: number
The frames per second of the animation
- totalFrame: number
The total number of frames
- from: any
The frame at the beginning of the animation
- to: any
The frame at the end of the animation
OptionalloopMode: numberSpecifies the loop mode of the animation
OptionaleasingFunction: EasingFunction(Optional) The easing function of the animation, which allow custom mathematical formulas for animations
OptionalonAnimationEnd: () => voidCallback to run once the animation is complete
Returns Nullable<Animatable>
Nullable animation
- name: string
Creates a new animation, merges it with the existing animations and starts it