Animation.CrossFade Lag

function Start () { }

function Update () {
     if (Input.GetKey(KeyCode.W)) {
          animation.CrossFade("walkForward");
     }
     if (Input.GetKey(KeyCode.D)) {
          animation.CrossFade("walkRight");
     }
}

The animations lag when crossfading together. How can that be fixed?

What do you mean by lag?

CrossFace takes second parameter - fadeLength, which is defaulted to 0.3, maybe you should pass smaller value?