http://forum.unity3d.com/threads/mecanim-control.224315/ 可以解决运行时动画替换。
具体来说就是RuntimeAnimatorController myController = animator.runtimeAnimatorController;
AnimatorOverrideController myOverrideController = new AnimatorOverrideController();
myOverrideController.runtimeAnimatorController = myController;
myOverrideController["run"] = myRunFasterClip;
// Put this line at the end because when you assign a controller on an Animator, unity rebind all the animated properties
animator.runtimeAnimatorController = myOverrideController;
具体来说就是RuntimeAnimatorController myController = animator.runtimeAnimatorController;
AnimatorOverrideController myOverrideController = new AnimatorOverrideController();
myOverrideController.runtimeAnimatorController = myController;
myOverrideController["run"] = myRunFasterClip;
// Put this line at the end because when you assign a controller on an Animator, unity rebind all the animated properties
animator.runtimeAnimatorController = myOverrideController;
