mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
adjust ui priority (#4542)
This commit is contained in:
@@ -444,8 +444,8 @@ export class UI {
|
||||
sortList.sort((a, b) => {
|
||||
const aComp = a.getComponent(UIComponent);
|
||||
const bComp = b.getComponent(UIComponent);
|
||||
const ca = aComp ? aComp.priority : -1;
|
||||
const cb = bComp ? bComp.priority : -1;
|
||||
const ca = aComp ? aComp.priority : 0;
|
||||
const cb = bComp ? bComp.priority : 0;
|
||||
return ca - cb;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user