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

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

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

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

The only settings I change in them are:

  • Preferred Nav Data = Preferred Nav Data
  • Color
  • Name

All other settings are left by default.

After - I create on the map:

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.

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?

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.

1 Like

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