mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Javadoc for AnimationState setMixDuration.
This commit is contained in:
parent
40aca11ccd
commit
92a9b88e00
@ -1181,8 +1181,10 @@ public class AnimationState {
|
|||||||
* <p>
|
* <p>
|
||||||
* When using {@link AnimationState#addAnimation(int, Animation, boolean, float)} with a <code>delay</code> <= 0, the
|
* When using {@link AnimationState#addAnimation(int, Animation, boolean, float)} with a <code>delay</code> <= 0, the
|
||||||
* {@link #getDelay()} is set using the mix duration from the {@link AnimationStateData}. If <code>mixDuration</code> is set
|
* {@link #getDelay()} is set using the mix duration from the {@link AnimationStateData}. If <code>mixDuration</code> is set
|
||||||
* afterward, the delay may need to be adjusted. For example:
|
* afterward, the delay may need to be adjusted. For example:<br>
|
||||||
* <code>entry.delay = entry.previous.getTrackComplete() - entry.mixDuration;</code> */
|
* <code>entry.delay = entry.previous.getTrackComplete() - entry.mixDuration;</code><br>
|
||||||
|
* Alternatively, {@link #setMixDuration(float, float)} can be used to recompute the delay:<br>
|
||||||
|
* <code>entry.setMixDuration(0.25f, 0);</code> */
|
||||||
public float getMixDuration () {
|
public float getMixDuration () {
|
||||||
return mixDuration;
|
return mixDuration;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user