# Sort Priority on a Non-Transparent Material

**URL:** <https://forums.unrealengine.com/t/sort-priority-on-a-non-transparent-material/386432>\
**Category:** Rendering\
**Tags:** transparent, sorting, sprite, unreal-engine, question\
**Created:** [February 27, 2017, 11:39pm UTC](https://forums.unrealengine.com/t/sort-priority-on-a-non-transparent-material/386432 "2017-02-27T23:39:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raptagon\_Studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raptagon\_Studios](https://forums.unrealengine.com/u/Raptagon_Studios)\
**Post date:** [February 27, 2017, 11:39pm UTC](https://forums.unrealengine.com/t/sort-priority-on-a-non-transparent-material/386432/1 "2017-02-27T23:39:19Z")

</div>

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/d/e3d0b9c8ac329e6b024f3ff925e5f4800d73ac43.jpeg)

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [March 2, 2017, 4:53pm UTC](https://forums.unrealengine.com/t/sort-priority-on-a-non-transparent-material/386432/2 "2017-03-02T16:53:01Z")

</div>

You can disable depth testing in the material settings.

---

<div class="post-metadata">

**Author:** ![Raptagon\_Studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raptagon\_Studios](https://forums.unrealengine.com/u/Raptagon_Studios)\
**Post date:** [April 21, 2018, 11:41pm UTC](https://forums.unrealengine.com/t/sort-priority-on-a-non-transparent-material/386432/3 "2018-04-21T23:41:46Z")

</div>

unfortunately that didn’t work.
