SpriteRender sorting layer

Hello everyone. How do I sort my sprites into layers? I read about the sorting component, but I have prefabs that have a lot of nodes, I will have to add this component to all these nodes. If I want to change the layer, I change it again on all nodes. In Unity, you just needed to change the position of the parent object along the z axis to achieve the same effect. By the way, since I’m here, I’ll ask one more question)
What is the difference between a sprite component and a spriterenderer?

SpriteRenderer is for 3D space…the Docs say this.

SpriteRenderer: 2D rendering component that provides the ability to render sprite in 3D space.

The 2D games works really different than Unity.
This is actually more similar to Godot.

Ok now the Sorting order for 2D games works with Order on the hierarchy.
I try to use the Sorting Order component nothing changes. (I guess it’s for other stuff)/

So I need to use Sprite if I want create 2d game?

In short yes.

3D games are more similar but 2D games are not like Unity.
From what I understand the SpriteRenderer you should use it when you have a 3D world but you want to show 2D sprites.

Got it, thanks

you can sort your sprite programmatically using setSiblingIndex

Thanks for the reply. True, I knew it, but I thought that there were better solutions :slight_smile: