public AnimationClip clip;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
clip.SampleAnimation(this.gameObject, clip.length / 2);
}
public AnimationClip clip;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
clip.SampleAnimation(this.gameObject, clip.length / 2);
}
I have solved this problem, need mask the animation file as Legacy.
For mesh, you can do it in the inspector. For animation, open file with an text editor. find string “m_Legacy:0”. change to 1 and save the file.