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

Sorting sprites

Resources for understanding how Unity orders 2D GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
in a sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
, 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