[]H5页面的骨骼动画不能显示完整,兼容性问题?
// 加载动画
loadAni(): void {
var aniPath = this.ANIS[this.fishIndex];
this.mFactory = new Laya.Templet();
this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete);
this.mFactory.loadAni(aniPath);
}
// 动画解析完成,添加到舞台,并且开始swim
parseComplete(): void {
this.mArmature = this.mFactory.buildArmature(0);
this.mArmature.x = 0;
this.mArmature.y = 0;
this.addChild(this.mArmature);
this.mArmature.play(this.SWIM_RIGHT_ANI_NAME, true);
Laya.timer.frameLoop(1, this, this.swim);
}
在大部分浏览器都是OK的,但是在部分浏览器中,骨骼动画并不完整,动画的.sk文件也加载成功。
请问大家这个兼容性问题嘛?一直不知道怎么解决。一条鱼在游动,但是在浏览器里只有一个鱼眼,感觉也还在做动作。
动画是spine动画,用IDE的工具转换的。
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
cuixueying
赞同来自:
xiaoyi
赞同来自:
重定向后线上是这样的,错误的。
正常是这样的
同一个手机会出现2种情况,只是一种是直接访问没问题,一种是微信支付成功会重定向(动画不完整),这一点也不科学。