mirror of
https://gitee.com/nomat/lcc-ui-sorting-group-demo.git
synced 2024-12-24 10:48:25 +00:00
移除debug注释
This commit is contained in:
parent
76563d4c40
commit
b27ec37d0c
@ -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(){
|
||||
|
@ -574,7 +574,7 @@
|
||||
"node": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_enabled": false,
|
||||
"_enabled": true,
|
||||
"_sortingLayer": 1,
|
||||
"_orderInLayer": 0,
|
||||
"_id": "95L6yHtudDn4DXi9XNXUWm"
|
||||
|
Loading…
Reference in New Issue
Block a user