[]怎么对动画进行毎帧侦听?
ani.on(Laya.Event.COMPLETE, this, _OnComplete);
function _OnComplete()
{
var bounds = ani.getGraphicBounds();
console.log(bounds.width);
console.log(bounds.height);
}
这样的话获取动画宽高 还是只会取到第一帧宽高 并没有办法取到毎帧的宽高
function _OnComplete()
{
var bounds = ani.getGraphicBounds();
console.log(bounds.width);
console.log(bounds.height);
}
这样的话获取动画宽高 还是只会取到第一帧宽高 并没有办法取到毎帧的宽高
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
cuixueying
赞同来自: