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"