Updating all transform at once at the end of the frame

Hi, I’m trying to create a top down 2d shooter where sprites can go one behind the other, with this in mind I already added a single parent to all gameObjects in the scene that make their z position equal to their y position, so that every sprite who has an high y value is drew behind others who are lower in the y axis, like in this example: 196041-immagine-2022-05-07-170334.png
I would like to know, is there another system that doesn’t require a global parent for all gameobjects?

: for everyone wondering, you just have to go trought: Edit->Project settings->Graphics and set

  • Transparency Sorrt Mode to Custom Axis
  • X:0 Y:1 Z:0