im trying to i change animation with out lerp.
im using the code as shown below.
AnimationState.SetAnimation( trackIdx , AnimationName , isLoop );
or
SkeletonAnimation.AnimationName
but it doesn't working.
is there a way?
im trying to i change animation with out lerp.
AnimationState.SetAnimation( trackIdx , AnimationName , isLoop );
or
but it doesn't working.
is there a way?
Are you applying the animation to the skeleton?
Assuming this is Spine-Unity, you'll get whatever the default lerp / mix duration that you've set on your SkeletonData asset. You could set that to 0, and you shouldn't get any blending.
Using AnimationStateData, you can set the mix to zero for the two animations, or use a default mix of zero.
You can set the mixTime
to mixDuration
on the TrackEntry you get back from AnimationState setAnimation
.