mirror of
https://gitee.com/nomat/lcc-ui-sorting-group-demo.git
synced 2024-12-25 03:08:28 +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){
|
set sortingLayer(value:SortingLayer){
|
||||||
this._sortingLayer = value;
|
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){
|
set orderInLayer(value:number){
|
||||||
this._orderInLayer = value;
|
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(){
|
onEnable(){
|
||||||
|
@ -574,7 +574,7 @@
|
|||||||
"node": {
|
"node": {
|
||||||
"__id__": 8
|
"__id__": 8
|
||||||
},
|
},
|
||||||
"_enabled": false,
|
"_enabled": true,
|
||||||
"_sortingLayer": 1,
|
"_sortingLayer": 1,
|
||||||
"_orderInLayer": 0,
|
"_orderInLayer": 0,
|
||||||
"_id": "95L6yHtudDn4DXi9XNXUWm"
|
"_id": "95L6yHtudDn4DXi9XNXUWm"
|
||||||
|
Loading…
Reference in New Issue
Block a user