node.parent.convertToWorldSpaceAR(node.position);
当 node 存在于 Layout 组件的节点内部时坐标计算错误。请问怎么解决?
cc.log(this.keyboardLayout.node.children[6].position);
this.keyboardLayout.cellSize = new cc.size(cellWidth, cellHeight);
this.keyboardLayout.updateLayout();
cc.log(this.keyboardLayout.node.children[6].position);
this.scheduleOnce(function () {
cc.log(this.keyboardLayout.node.children[6].position);
}, this, 0);
三次打印的值都不一样,只有延时打印的是正确的。