1.代码实现:
private Animator anim;
private void Start()
{
anim=GetComponent<Animator>();
anim.updateMode = AnimatorUpdateMode.UnscaledTime; // 指定此Animator不受Time.TimeScale影响
}
2.更改组件属性实现
找到Animator组件的Update Mode属性
选择Unlcaled Time 就可以了!
1.代码实现:
private Animator anim;
private void Start()
{
anim=GetComponent<Animator>();
anim.updateMode = AnimatorUpdateMode.UnscaledTime; // 指定此Animator不受Time.TimeScale影响
}
2.更改组件属性实现
找到Animator组件的Update Mode属性
选择Unlcaled Time 就可以了!