From e73e3eeaa88d28918930736ff80f62200cc22909 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Fri, 7 Jun 2024 14:43:53 +0200 Subject: [PATCH] [csharp] Port of commit c2fe1a3, Added TrackEntry IsNextReady. See #2547. --- spine-csharp/src/AnimationState.cs | 8 ++++++++ spine-csharp/src/package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/spine-csharp/src/AnimationState.cs b/spine-csharp/src/AnimationState.cs index 979bb4896..dbe304006 100644 --- a/spine-csharp/src/AnimationState.cs +++ b/spine-csharp/src/AnimationState.cs @@ -1214,6 +1214,14 @@ namespace Spine { get { return nextTrackLast != -1; } } + /// Returns true if there is a track entry that will become the current track entry during the + /// next . + public bool IsNextReady { + get { + return (next != null) && (nextTrackLast - next.delay >= 0); + } + } + /// /// Returns true if at least one loop has been completed. /// diff --git a/spine-csharp/src/package.json b/spine-csharp/src/package.json index 9c0178cc2..6d1407a0a 100644 --- a/spine-csharp/src/package.json +++ b/spine-csharp/src/package.json @@ -2,7 +2,7 @@ "name": "com.esotericsoftware.spine.spine-csharp", "displayName": "spine-csharp Runtime", "description": "This plugin provides the spine-csharp core runtime.", - "version": "4.2.23", + "version": "4.2.24", "unity": "2018.3", "author": { "name": "Esoteric Software",