3.8👽版本里没有_calculWorldMatrix 不能用 谁帮忙一下

   public static getBoundingBoxToWorld(node: any) {
    let w_n: number = node._contentSize.width;
    let h_n: number = node._contentSize.height;
    let rect_o = cc.rect(
        -node._anchorPoint.x * w_n,
        -node._anchorPoint.y * h_n,
        w_n,
        h_n
    );
    node._calculWorldMatrix();
    rect_o.transformMat4(rect_o, node._worldMatrix);
    return rect_o;
}

获取世界包围盒 getBoundingBoxToWorld 但不包含子节点的.

直接拷贝引擎源码改改,UITransform里面的

大佬 展开说说

image