diff --git a/spine-ts/spine-core/src/AnimationState.ts b/spine-ts/spine-core/src/AnimationState.ts index 56908a203..bcfd6628c 100644 --- a/spine-ts/spine-core/src/AnimationState.ts +++ b/spine-ts/spine-core/src/AnimationState.ts @@ -1032,6 +1032,12 @@ export class TrackEntry { wasApplied () { return this.nextTrackLast != -1; } + + /** Returns true if there is a {@link #getNext()} track entry and it will become the current track entry during the next + * {@link AnimationState#update(float)}. */ + isNextReady () { + return this.next != null && this.nextTrackLast - this.next.delay >= 0; + } } export class EventQueue {