[LayaAir3]状态机动画如果长时间保持一帧会进入休眠状态?
我在一个地方设置了
this.anim.setParamsBool("isDeath",false)
我在update函数内打印这个
this.anim.getControllerLayer(0).getCurrentPlayState().normalizedTimenormalizedTime在达到1.xxx后就一致是这个值了,我的动画有设置为循环播放。
我只能在设置this.anim.setParamsBool("isDeath",false)后调用
this.anim.play(this.anim.getControllerLayer(0).getCurrentPlayState().currentState.name,0,0)让动画唤醒,状态机才会继续运行,不然我设置了满足的参数后,当前动画不会运行到其他动画去
this.anim.setParamsBool("isDeath",false)
我在update函数内打印这个
this.anim.getControllerLayer(0).getCurrentPlayState().normalizedTimenormalizedTime在达到1.xxx后就一致是这个值了,我的动画有设置为循环播放。
我只能在设置this.anim.setParamsBool("isDeath",false)后调用
this.anim.play(this.anim.getControllerLayer(0).getCurrentPlayState().currentState.name,0,0)让动画唤醒,状态机才会继续运行,不然我设置了满足的参数后,当前动画不会运行到其他动画去
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
LayaAir大为
赞同来自: