CrossFade seems to do nothing?

I have a character with an Idle and with an Attack animation.

When I call animation.CrossFade(clip.name,0.3) it jerks the animation into place, even if I’m at the end of the previous animation.

Any ideas what I’m doing wrong here? I’ve changed the time value from 0.3 all the way to 5.0 and it’s done nothing.

This is with Beta Unity 3 btw.

Have you got both animations set to Loop mode?

Are the animations in the same layer? Just asking, cause I’m pretty sure they have to be in the same layer to be able to cross faded.

The Idle one is on a loop, attack is not (because I don’t want attack to keep swinging.)

They are both assigned to the same layer. Is there a special animation layer somewhere to set as well?

Not sure. Is this script being used in the Attack script or the animation script?

Make sure you call the animation behaviour in the Update Function.