[csharp] Port of commit c2fe1a3, Added TrackEntry IsNextReady. See #2547.

This commit is contained in:
Harald Csaszar 2024-06-07 14:43:53 +02:00
parent c2fe1a3d77
commit e73e3eeaa8
2 changed files with 9 additions and 1 deletions

View File

@ -1214,6 +1214,14 @@ namespace Spine {
get { return nextTrackLast != -1; } get { return nextTrackLast != -1; }
} }
/// <summary>Returns true if there is a <see cref="Next"/> track entry that will become the current track entry during the
/// next <see cref="AnimationState.Update(float)"/>.</summary>
public bool IsNextReady {
get {
return (next != null) && (nextTrackLast - next.delay >= 0);
}
}
/// <summary> /// <summary>
/// Returns true if at least one loop has been completed.</summary> /// Returns true if at least one loop has been completed.</summary>
/// <seealso cref="TrackEntry.Complete"/> /// <seealso cref="TrackEntry.Complete"/>

View File

@ -2,7 +2,7 @@
"name": "com.esotericsoftware.spine.spine-csharp", "name": "com.esotericsoftware.spine.spine-csharp",
"displayName": "spine-csharp Runtime", "displayName": "spine-csharp Runtime",
"description": "This plugin provides the spine-csharp core runtime.", "description": "This plugin provides the spine-csharp core runtime.",
"version": "4.2.23", "version": "4.2.24",
"unity": "2018.3", "unity": "2018.3",
"author": { "author": {
"name": "Esoteric Software", "name": "Esoteric Software",