Unity mecanim animation

Apply root motion is checked, 整个骨骼都会在场景中改变位置。 not checked,骨骼只会相对的移动(就像在跑步机上)不会改变在场景重的位置。

public class AnimatorTest : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void OnAnimatorMove()
    {
        
    }
}

  如果添加脚本,中含有OnAnimatorMove 

就会出现handled by script。

Edit transition

可以添加多个transition,比如控制speed 的范围 〉  〈

3.Create blend tree

1. add blend tree.

2.double click blend tree

posted @ 2014-07-16 16:11  penney  阅读(257)  评论(0)    收藏  举报