Version: Unity 6.0 (6000.0)
Language : English
Create collision shapes for a sprite
2D rendering order

Sorting sprites

Resources for understanding how Unity orders 2D GameObjects in a scene, and how to control the order with sorting layers, sorting groups, and distance calculations.

Topic Description
2D rendering order Learn about the criteria Unity uses to decide whether one 2D GameObject renders in front of another.
Change the sorting order of 2D GameObjects Arrange 2D GameObjects in layers, set the order within a layer, and change how Unity calculates distance.
Prevent 2D GameObjects mixing in sorting layers Keep groups of 2D GameObjects from mixing together on the same sorting layers and sublayers.
Sorting Group component reference Explore the properties you can use to determine the rendering order of a group of 2D GameObjects.

Additional resources

  • SpritesA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
    See in Glossary
Create collision shapes for a sprite
2D rendering order