Depth with Unity2D

Hello
I’m making a Beat’em Up and i’m trying to do “depth” for example if an enemy is lower on the screen than you on the screen, he appers like if he was in front of you and when he go higher, he goes back you. I’ve tried to use Sorting layers but there is something who is every on the top layer. (Just in case, my player is animated in game)
So what should I do ?
Thanks

Edit : I made a video to explain : - YouTube

Putting all your character SpriteRenderers in the same sorting layer and then setting their sortingOrder based on their y position should have the desired effect.

I did something similar (I can paste the script but there are some game-specific things inside), and just changed z position according to y position. if it’s high on the screen (y), make it farther (z)