- Home /
Problem with speed reset after crossfadeQueued
Hi,
i don't find how to keep a high speed to one animation, i set the speed of my animation" fast" at 3, it works fine, but after the crossfadeQueued, it comes back to its original speed, so it is not 3 anymore but 1, even if i tell it to keep the speed at 3, would you know why?
function Start () {
animation["fast"].speed = 3;
}
function Update () {
if (Input.GetAxis("Horizontal")>0) animation.CrossFade("transition");
if (Input.GetAxis("Vertical")>0) animation.CrossFade("run");
if (animation.IsPlaying("transition")) {
//animation["fast"].speed = 3;
animation.CrossFadeQueued("fast");
animation["fast"].speed = 3;
}
}
Thanks
ps: in this thread : http://answers.unity3d.com/questions/55866/animationcrossfadequeued-playback-speed-glitch.html the speed is reset again, do you know why it is not working with the code above?
Comment