In this tutorial, you will learn to setup a custom axis to make objects in the same order layer appear behind or in front of your player based on the position. This is much more efficient than changing the order in layer as the player moves. This will make it so when your player is in front of something, it shows that objects behind. But when the player moves behind that object, it shows in front.
Unless you want to always be in front or behind something ( in that case you'd use order in layer ), you want to use the custom axis so that will change depending on your position and the object's position.
---
Subscribe for game making tutorials with unity and to follow my projects with the dev logs ! Follow me on tiktok for small clips @MaxMakesGames
Check out my website if you want to see and try the games I made: https://bit.ly/MaxMakesGames