Hello there, I am a UE5 beginner I’m having trouble with my project that I just can’t seem to figure out how to solve.
I’ll try to be as clear as I can (a little bit tricky). Here is my issue:
When a new game is launched, the main map is loaded. Within the level blueprint of this main level, there are 3 other sub-levels loaded with the node EventBeginPlay and then Load Level Instance by Name (see the screenshot). The point is to create random parts of the main level. In those sub-levels, there are enemies to kill and puzzles to solve.
However, the enemies don’t move around and don’t attack the player in those sub-levels (when the main map is loaded).
I understood that the problem comes from the Nav Mesh Bound Volume, which doesn’t load properly in those sections, for some reason.
I tried different things like putting only one huge Nav Mesh Bound Volume in the main level and NOT within the sub-levels, or the other way around, but nothing really worked. The Nav Mesh Bound Volume of the sub-levels just doesn’t load correctly.
I would be very grateful if you guys could help me solve this problem. I haven’t found the solutions in this forum or on YouTube.
There could be the possibility that, during gameplay, it is being deactivated. You can have the NAVMESH persist to debug it during gameplay with this command:
Yes absolutely, the NavMesh of the sub-levels seems deactivated when I open the Main level, perhaps it’s due to the node load level instance. Is there a way to force it to open ?
Thank you so much for your help, I really appreciate it
It worked !!! The Runtime generation parameter (dynamic) solved the problem. The only slight downside: this change drastically lowered the FPS. I had to resize the NAV Mesh and optimize its location to increase the FPS. It’s not perfect (around 60fps) but it’s working !
If anyone else finds themselves in this situation, here’s what to do: delete all the Nav Mesh from the “sub-levels” and add one in the main map, and make sure the Runtime Generation is set on dynamic.
Huge thanks to @Leomerya12 , you solved a problem I had been struggling for weeks. I owe you a coffee ;