# Why is the RecastNavMesh object not created for the Nav-Agent?

**URL:** <https://forums.unrealengine.com/t/why-is-the-recastnavmesh-object-not-created-for-the-nav-agent/1324657>\
**Category:** AI\
**Tags:** nav-agent, unreal-engine, question\
**Created:** [October 6, 2023, 9:17pm UTC](https://forums.unrealengine.com/t/why-is-the-recastnavmesh-object-not-created-for-the-nav-agent/1324657 "2023-10-06T21:17:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Micronik\_PS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/micronik_ps/32/949635_2.png) [@Micronik\_PS](https://forums.unrealengine.com/u/Micronik_PS)\
**Post date:** [October 6, 2023, 9:17pm UTC](https://forums.unrealengine.com/t/why-is-the-recastnavmesh-object-not-created-for-the-nav-agent/1324657/1 "2023-10-06T21:17:19Z")

</div>

I work on Unreal Engine 5.2.1.  
I have a completely empty map.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/4/8549a70c51b58b75702d11853446803b42da41a0.jpeg)

In my project, I want to announce 2 different, by color, Nav-Agents:

1. FirstAgent (Color : Blue)
2. SecondAgent (Color : Yellow)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/d/dcd21bda2691713df0ac5b29ddf8f2474badb148.png)

The only settings I change in them are:

- Preferred Nav Data = Preferred Nav Data
- Color
- Name

All other settings are left by default.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/0/ce0dfa1660746fcf75db0b5821f2fd0de9da6c70.png)

After - I create on the map:

- NavMeshBoundsVolume\_1 (Supported Agents = FirstAgent)  

- NavMeshBoundsVolume\_2 (Supported Agents = SecondAgent)  

BUT! In Outliner, only an object is created for the SecondAgend Nav-Agent without the FirstAgent. Rebooting the engine/deleting RecastNavMesh objects/moving NavMeshBoundsVolume : does not help. The result remains the same.  
With Build Path, a second instance of the SecondAgent agent is generally created.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/9/be9d0985db2d3a066512f96cbeff6a75c4d99276.jpeg)

In theory, I should see 2 instances of DIFFERENT Nav-Agents in Outliner, but as a result I see 2 instances of one SecondAgent agent. Why is this happening?

---

<div class="post-metadata">

**Author:** ![CR\_Iwanaga](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CR\_Iwanaga](https://forums.unrealengine.com/u/CR_Iwanaga)\
**Post date:** [November 22, 2023, 6:41am UTC](https://forums.unrealengine.com/t/why-is-the-recastnavmesh-object-not-created-for-the-nav-agent/1324657/2 "2023-11-22T06:41:18Z")

</div>

Hello Micronik\_PS

Regarding your question, in order for a RecastNavMesh to be generated for each Agent, the values of AgentRadius or AgentHeight or AgentStepHeight must be different.

From the image, I think that the values are the same, which is why it was not generated.

Please check UNavigationSystemV1::RegisterNavData and FNavAgentProperties::IsEquivalent for more information.

Note that if you change only AgentStepHeight, it may be recognized as the same information if one of them is -1.

This is all the information I have, sorry if it is wrong.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 18, 2024, 6:39am UTC](https://forums.unrealengine.com/t/why-is-the-recastnavmesh-object-not-created-for-the-nav-agent/1324657/3 "2024-06-18T06:39:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
