Game Development Reference
In-Depth Information
Sprite sorting order
Sprites within an individual layer can be sorted, allowing you to control the draw order of
sprites within that layer. The sprite
Inspector
is used for this purpose, as shown in the fol-
lowing screenshot:
Note
Sprite's
Sorting Layers
should not be confused with Unity's rendering layers. Layers are
a separate functionality used to control whether groups of game objects are drawn or man-
aged together, whereas
Sorting Layers
control the draw order of sprites in a scene.
So the reason our player is no longer seen is that it is behind the background. As they are
both in the same layer and have the same sort order, they are simply drawn in the order
that they are in the project hierarchy.