Sort Priority on a Non-Transparent Material

I have a sprite that spawns onto a tile. I need to be able to have it show up in front of a mesh if its world Y location is lower than the Y location of the mesh behind it. I cannot make the mesh a transparent material because then it cannot have static shadows. What can I do to make the sprite or particle effect show up in front of the Static Mesh without using Transparent materials and without moving the particle effect/sprite? (if it is behind the mesh, it needs to render behind it, if in front, it needs to render in front)

128069-sortpriority_nontransparentwall.jpg

You can disable depth testing in the material settings.

unfortunately that didn’t work.