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?
✗ Incorrect
Unity uses sorting layers and order in layer to decide which sprite is drawn on top.
If two sprites are in the same sorting layer, which one appears on top?
✗ Incorrect
Within the same sorting layer, the sprite with the higher 'Order in Layer' value is drawn on top.
Where do you add new sorting layers in Unity?
✗ Incorrect
Sorting layers are managed in the Tags and Layers settings in Unity.
What happens if two sprites are in different sorting layers but have the same 'Order in Layer'?
✗ Incorrect
Sorting layers have priority over 'Order in Layer' values when layers differ.
Why might you avoid using Z position to control sprite order in 2D games?
✗ Incorrect
Changing Z position can affect physics calculations and camera behavior, so sorting layers are preferred.
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.