3.8.4 UI层级排序还能使用priority吗?

this.node.getComponent(UITransform)!.priority

现在接口用的是 setSiblingIndex

好的~ 那就是排序之后,在设置setSiblingIndex

啊啊,我发现用这个性能好差,有没有排序完成之后,在调用节点的更新方法?

直接给children做sort,自己定义sort的方式和频次就行

1赞