attachment中没有computeWorldVertices方法

  • Creator 版本: 3.8.X

  • 目标平台:web 模拟器 windows10 安卓

  • 重现方式: // attachment中没有computeWorldVertices方法
    在获取spine动画资源的边界框时,先获取某个Slot再获取其中的附加信息里的边界框,如下出获取不到的问题。每种平台出错信息不同。3.7.3网页端正常。但是发布win端出错。
    let slot = this.sk.findSlot(“b”);
    let attachment = <sp.spine.VertexAttachment>slot.getAttachment();
    let arr:sp.spine.ArrayLike = {
    length: 0
    };
    try {
    attachment.computeWorldVertices(slot, 0, attachment.worldVerticesLength, arr, 0, 2);
    } catch (error) {

              console.log("=========!!!!"+error); // 报错
          }
    
  • 之前哪个版本是正常的: 3.7.3 网页端正常 电脑端不正常

  • 编辑器操作系统: win10

  • 重现概率: 100%