0
0
Unityframework~5 mins

Sorting layers and order in Unity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are sorting layers in Unity?
Sorting layers are a way to group sprites and objects to control their rendering order on the screen. Objects in higher sorting layers appear in front of those in lower layers.
Click to reveal answer
beginner
How does the 'Order in Layer' property affect rendering?
The 'Order in Layer' sets the drawing order of objects within the same sorting layer. Higher values are drawn on top of lower values.
Click to reveal answer
intermediate
Can two objects in different sorting layers have the same 'Order in Layer' value? What happens?
Yes, they can. The object in the sorting layer with higher priority will be drawn on top, regardless of the 'Order in Layer' value.
Click to reveal answer
beginner
How do you create a new sorting layer in Unity?
Go to the 'Tags and Layers' settings in Unity, then add a new sorting layer by clicking the '+' button under the Sorting Layers section.
Click to reveal answer
intermediate
Why is sorting layers preferred over changing the Z position for 2D sprite rendering?
Sorting layers provide a clear and easy way to control rendering order without affecting physics or camera settings, unlike changing the Z position which can cause unintended side effects.
Click to reveal answer
What determines which sprite appears on top in Unity's 2D rendering?
ATexture resolution
BSprite size
CSprite color
DSorting layer and order in layer
If two sprites are in the same sorting layer, which one appears on top?
AThe one with lower 'Order in Layer' value
BThe one with higher 'Order in Layer' value
CThe one with bigger sprite size
DThe one with higher Z position
Where do you add new sorting layers in Unity?
ATags and Layers settings
BPhysics settings
CLighting settings
DAudio settings
What happens if two sprites are in different sorting layers but have the same 'Order in Layer'?
AThe sprite in the higher sorting layer is drawn on top
BThey overlap randomly
CThe sprite with bigger size is drawn on top
DThe sprite with lower sorting layer is drawn on top
Why might you avoid using Z position to control sprite order in 2D games?
AIt reduces game performance
BIt changes sprite colors
CIt can interfere with physics and camera settings
DIt disables animations
Explain how sorting layers and order in layer work together to control sprite rendering order in Unity.
Think of sorting layers as folders and order in layer as the position inside the folder.
You got /4 concepts.
    Describe the steps to add a new sorting layer and assign it to a sprite in Unity.
    Remember sorting layers are managed in project settings, then assigned per sprite.
    You got /4 concepts.