# Explicit Draw Order

**URL:** <https://forums.unrealengine.com/t/explicit-draw-order/371313>\
**Category:** Rendering\
**Tags:** fyi, unreal-engine, Rendering, question\
**Created:** [September 22, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/explicit-draw-order/371313 "2016-09-22T18:39:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [September 22, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/explicit-draw-order/371313/1 "2016-09-22T18:39:36Z")

</div>

In CCP’s talk on making Gunjack for GearVR, [they reference being able to control the draw order of elements in their scene](https://www.youtube.com/watch?v=dl7IGBqymb0&t=17m45s).

I couldn’t find any such settings on meshes or materials. Is this an exposed feature in the engine or something that involves tweaking the mobile renderer?

Thanks,

-Richard

---

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [September 22, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/explicit-draw-order/371313/2 "2016-09-22T18:39:42Z")

</div>

Hi Richard, the engine on the 4.13 mobile renderer always sorts front to back (TStaticMeshDrawList::SortFrontToBack()), but they might have been using an older version where you had to specify its order.

---

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [September 22, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/explicit-draw-order/371313/3 "2016-09-22T18:39:43Z")

</div>

Thanks for that Rolando! I see TStaticMeshDrawList::SortFrontToBack in 4.12 (which we are using).  
Do you know if there is a way to make sure the Skybox is drawn first? Since the camera is inside of it, it may not always sort correctly.

---

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [September 22, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/explicit-draw-order/371313/4 "2016-09-22T18:39:43Z")

</div>

All I could find was this [Using Decals in Unreal Engine | Unreal Engine 5.1 Documentation](https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/Decals/1_6/)

---

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [September 22, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/explicit-draw-order/371313/5 "2016-09-22T18:39:43Z")

</div>

It seems like having the ability to flag certain objects to draw last, such as the sky box, could help with performance on all platforms. If this isn’t possible, could we add it as a nifty feature request?

---

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [September 22, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/explicit-draw-order/371313/6 "2016-09-22T18:39:44Z")

</div>

Added ticket [UE-34718](https://issues.unrealengine.com/issue/UE-34718) as a feature request. Good catch!
