From b27ec37d0c46d0eac4ea9bffea23f1a25523d4a9 Mon Sep 17 00:00:00 2001 From: lujun <495904500@qq.com> Date: Tue, 21 Mar 2023 23:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4debug=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.4.11/assets/lcc-ui-sorting-group/sorting-group.ts | 4 ++-- 2.4.11/assets/test/scenes/test-scene-sorting.fire | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/2.4.11/assets/lcc-ui-sorting-group/sorting-group.ts b/2.4.11/assets/lcc-ui-sorting-group/sorting-group.ts index 569d86f..a47c553 100644 --- a/2.4.11/assets/lcc-ui-sorting-group/sorting-group.ts +++ b/2.4.11/assets/lcc-ui-sorting-group/sorting-group.ts @@ -22,7 +22,7 @@ export class SortingGroup extends cc.Component { } set sortingLayer(value:SortingLayer){ this._sortingLayer = value; - // this.node.sortingPriority = Math.sign(this._sortingLayer) * (Math.abs(this._sortingLayer) * ORDER_IN_LAYER_MAX + this._orderInLayer); + this.node.sortingPriority = Math.sign(this._sortingLayer) * (Math.abs(this._sortingLayer) * ORDER_IN_LAYER_MAX + this._orderInLayer); } /** @@ -40,7 +40,7 @@ export class SortingGroup extends cc.Component { } set orderInLayer(value:number){ this._orderInLayer = value; - // this.node.sortingPriority = Math.sign(this._sortingLayer) * (Math.abs(this._sortingLayer) * ORDER_IN_LAYER_MAX + this._orderInLayer); + this.node.sortingPriority = Math.sign(this._sortingLayer) * (Math.abs(this._sortingLayer) * ORDER_IN_LAYER_MAX + this._orderInLayer); } onEnable(){ diff --git a/2.4.11/assets/test/scenes/test-scene-sorting.fire b/2.4.11/assets/test/scenes/test-scene-sorting.fire index d6e9c44..c9564cb 100644 --- a/2.4.11/assets/test/scenes/test-scene-sorting.fire +++ b/2.4.11/assets/test/scenes/test-scene-sorting.fire @@ -574,7 +574,7 @@ "node": { "__id__": 8 }, - "_enabled": false, + "_enabled": true, "_sortingLayer": 1, "_orderInLayer": 0, "_id": "95L6yHtudDn4DXi9XNXUWm"