hi all
im working on rpg. i have problem with animation blending. now dont add any blending. when the sword attack or combo attack is ended then its animation jump to idle animation.
i dont good understand how can i blend my animations from unityscriptingreference.
anyone can help me?
thankful.
You mean to fade out a blended animation? If so you just do it like
animation.Blend("Attack", 0.0, 0.5);
basically the “Attack” is the name of your animation, the “0.0” is the weight you want it to be (0.0 since your fading it out), and the “0.5” is the amount of time you want the fade out to take.
thanks for reply.
but my animations jump and is not smooth. how can smooth it?
Use animation.CrossFade to play the animation it will smoothly fade in the next animation.
thanks. but i dont know why when my attack1 is ended it go to starting frame of attack one(jump and not smooth) then go to idle.
can help me?
thankful.
thanks. but i dont know why when my attack1 is ended it go to starting frame of attack one(jump and not smooth) then go to idle.
can help me?
thankful.
Can you post the code you use for playing the animations?