1. 程式人生 > >cocos 調整同一父節點下子節點順序

cocos 調整同一父節點下子節點順序

同一父節點下層級高的顯示在前面

設定層級

var index = 1;

this.node.setSiblingIndex(index);

獲取所在的層級

this.node.getSiblingIndex();