creator 2.4.4 获取spine动画边界框点位发布安卓后游戏卡死

代码如下:
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();

image

将获取边界框点位的代码去掉后,安卓版本就能正常运行。
let arr: sp.spine.ArrayLike = [];
this.attachment.computeWorldVertices(this.slot, 0, this.attachment.worldVerticesLength, arr, 0, 2)

是发布到安卓后不支持computeWorldVertices()计算点位的这个方法吗

昨天debug发现安卓是没有computeWorldVertices这个方法的,你那边后来解决了吗?

我就是感觉没有这个方法,最后换了种实现方式,等官方大大的说法吧!

能请教下最后的实现方式的思路吗

自己画啊,只是不能根据骨骼精准去画了。

自己把computeWorldVertices方法拷贝过来用就行了