Layout添加子节点,渲染顺序问题

你们 就没有一个和laya的list一样的组件 好用 这东西非常的实用 而且用的地方还很多

1赞

我通过更换layout的节点实现了更改layout排序的问题。
let temp;
temp = this.node.parent.children[0];

        this.node.parent.children[0] = this.node;
        
        this.node.parent.children[this.node.parent.childrenCount -1] = temp;