interface Animatable {
    getAnimationDuration(): number;
    getAnimationElapsedTime(): number;
    getAnimationIndex(): number;
    getAnimationName(): string;
    getAnimationSpeedScale(): number;
    hasAnimationEnded(): boolean;
    isAnimationPaused(): boolean;
    pauseAnimation(): void;
    resumeAnimation(): void;
    setAnimationElapsedTime(time): void;
    setAnimationIndex(animationIndex): void;
    setAnimationName(newAnimationName): void;
    setAnimationSpeedScale(ratio): void;
}

Implemented by

Methods

  • Return true if animation has ended. The animation had ended if:

    • it's not configured as a loop;
    • the current frame is the last frame;
    • the last frame has been displayed long enough.

    Returns boolean