detecting if a sprite is in front or behind another sprite

How do I detect if one sprite is being rendered in front or behind another sprite? Any help would be greatly appreciated.

Don’t know much about sprites here in Unity, but usually there’s a “depth” field that you can establish. The lower that number the closer to the camera the sprite is, meaning it would be visible if stacked on another sprite of lower depth. If something like that doesn’t exist, I would suggest using sorting layers.