代码如下:
public attachment: sp.spine.BoundingBoxAttachment = null;
public slot: any = null;
this.attachment = this.leaderSpine.getAttachment(‘attack1’, “attack2”)
this.slot = this.leaderSpine.findSlot(“attack1”);
两个都获取成功,使用网上教程获取spine边界框的点位:
let arr: sp.spine.ArrayLike = [];
this.attachment.computeWorldVertices(this.slot, 0, this.attachment.worldVerticesLength, arr, 0, 2)
在电脑浏览器上正常运行,发布安卓后,只要获取边界框点位直接游戏卡死。
是发布到安卓不支持获取spine边界框的信息吗?computeWorldVertices();
