Finally, I got it almost done. Remember it and don't forget it.
Native2d itself can use sort layer to sort, and each layer has a different order in layer, so that each genie can naturally adjust who will cover who.
But ngui cannot be used together.
After being tortured for a long time, the following conclusions are drawn.
1. ngui is in the default layer of the sort layer, and the order in layer is 0.
2. Set the native 2D sprite to the same position as ngui when default and order in layer is 0, and adjust the Z axis at this time. The smaller the Z, the higher the Z.
3. Priority: Sort layer> order in layer> Z. Knowing this will make native 2D and ngui easy to get along.
Well, I am not forced to write code.
Supplement.
When using the ngui uilable, it may be because the Z axis of a uilable is adjusted, and other uilable will be changed. In this case, you can place your uilable on the panel to adjust the panel.
Experiences on ngui and native 2D mixed coverage