From 92a9b88e00b3234750ef36b5d3a5c2dfcd934240 Mon Sep 17 00:00:00 2001 From: Nathan Sweet Date: Tue, 21 Nov 2023 11:17:44 -0400 Subject: [PATCH] [libgdx] Javadoc for AnimationState setMixDuration. --- .../src/com/esotericsoftware/spine/AnimationState.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/AnimationState.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/AnimationState.java index f90ce624f..4586c804b 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/AnimationState.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/AnimationState.java @@ -1181,8 +1181,10 @@ public class AnimationState { *

* When using {@link AnimationState#addAnimation(int, Animation, boolean, float)} with a delay <= 0, the * {@link #getDelay()} is set using the mix duration from the {@link AnimationStateData}. If mixDuration is set - * afterward, the delay may need to be adjusted. For example: - * entry.delay = entry.previous.getTrackComplete() - entry.mixDuration; */ + * afterward, the delay may need to be adjusted. For example:
+ * entry.delay = entry.previous.getTrackComplete() - entry.mixDuration;
+ * Alternatively, {@link #setMixDuration(float, float)} can be used to recompute the delay:
+ * entry.setMixDuration(0.25f, 0); */ public float getMixDuration () { return mixDuration; }