cocos creator. siblingIndex 與 zIndex的區別
siblingIndex 是節點邏輯位置。 取的值: this.parent.children.indexOf(this)
zIndex主要是控制渲染順序。 值越小,越先渲染。
zIndex都相同的情況的,渲染循序根據siblingIndex值決定
這些所有值有效范圍都僅限,同一層級的節點間的關系! 直白點范圍就是_children 這個節點數組
siblingIndex 是節點邏輯位置。 取的值: this.parent.children.indexOf(this)
zIndex主要是控制渲染順序。 值越小,越先渲染。
zIndex都相同的情況的,渲染循序根據siblingIndex值決定
這些所有值有效范圍都僅限,同一層級的節點間的關系! 直白點范圍就是_children 這個節點數組