[]laya的animation如何每一帧的去获取回调

RT,如as3的enterFrame一样的事件回调
已邀请:

cuixueying

赞同来自:

你好
  LayaAir 下Animation没有办法监听到EnterFrame事件,但是可以用frameLoop方法来替代
启动一个Laya.timer.frameLoop(1,this,onLoop).在frameLoop的回调里去监听Animation播放的是第几帧(index)

unnamedzc

赞同来自:

那如何确定监听对象哪?是直接在回调里面取 ani.count?

要回复问题请先

商务合作
商务合作