# How to stack or set priority to area classes / nav modifiers

**URL:** <https://forums.unrealengine.com/t/how-to-stack-or-set-priority-to-area-classes-nav-modifiers/499193>\
**Category:** AI\
**Tags:** pathfinding, Navigation, unreal-engine, UE4-26, question\
**Created:** [February 17, 2022, 3:59pm UTC](https://forums.unrealengine.com/t/how-to-stack-or-set-priority-to-area-classes-nav-modifiers/499193 "2022-02-17T15:59:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lordlolek](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lordlolek/32/906205_2.png) [@lordlolek](https://forums.unrealengine.com/u/lordlolek)\
**Post date:** [February 17, 2022, 4:29pm UTC](https://forums.unrealengine.com/t/how-to-stack-or-set-priority-to-area-classes-nav-modifiers/499193/2 "2022-02-17T16:29:06Z")

</div>

It turns out I’m just bad at looking for the answer. Shortly after posting I’ve found this post and it resolves the problem for me

> [@Having problems with overlapping Nav Modifiers](https://forums.unrealengine.com/t/having-problems-with-overlapping-nav-modifiers/395147/2):
>
> You can enable ares “sorting” in Project Settings \> Navigation Mesh \> Sort Navigation Areas by Cost. Once enabled the navmesh generator will sort areas to be applied based on their cost making sure the most expensive areas end up on top. Of course this is not always what you want, so you can override the function that does the actual sorting, ARecastNavMesh::SortAreasForGenerator Cheers, –mieszko

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-stack-or-set-priority-to-area-classes-nav-modifiers/499193)._
