mirror of
https://gitee.com/nomat/lcc-ui-sorting-group-demo.git
synced 2024-12-25 03:08:28 +00:00
日常
This commit is contained in:
parent
fe21ffdc65
commit
1d101ebc4a
@ -72,13 +72,6 @@ export function updateOpacity (renderData: RenderData, opacity: number) {
|
||||
}
|
||||
}
|
||||
|
||||
const UI_initialize = UI.prototype.initialize;
|
||||
UI.prototype.initialize = function(){
|
||||
this.rendererCache = [];
|
||||
this.rendererOrder = false;
|
||||
return UI_initialize.call(this);
|
||||
}
|
||||
|
||||
UI.prototype.flushRendererCache = function(){
|
||||
const rendererCache = this.rendererCache;
|
||||
if(rendererCache.length > 0){
|
||||
@ -104,6 +97,8 @@ UI.prototype.update = function() {
|
||||
if (JSB) {
|
||||
return;
|
||||
}
|
||||
this.rendererCache = this.rendererCache ?? [];
|
||||
this.rendererOrder = false;
|
||||
const screens = this._screens;
|
||||
let offset = 0;
|
||||
for (let i = 0; i < screens.length; ++i) {
|
||||
|
@ -244,7 +244,7 @@
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 960,
|
||||
"x": 959.9999999999999,
|
||||
"y": 540,
|
||||
"z": 0
|
||||
},
|
||||
@ -897,8 +897,8 @@
|
||||
"__prefab": null,
|
||||
"_alignFlags": 45,
|
||||
"_target": null,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_left": -1.1368683772161603e-13,
|
||||
"_right": -1.1368683772161603e-13,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_horizontalCenter": 0,
|
||||
|
@ -244,7 +244,7 @@
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 960,
|
||||
"x": 959.9999999999999,
|
||||
"y": 540,
|
||||
"z": 0
|
||||
},
|
||||
@ -897,8 +897,8 @@
|
||||
"__prefab": null,
|
||||
"_alignFlags": 45,
|
||||
"_target": null,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_left": -1.1368683772161603e-13,
|
||||
"_right": -1.1368683772161603e-13,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_horizontalCenter": 0,
|
||||
|
Loading…
Reference in New Issue
Block a user