Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Moving NavMesh Volume

Hi, I'm trying to build a kind of infinite top-view platform using a bunch of pieces of ground that are dynamically intercalated to make the neverending illusion. Each piece has a nav mesh bounds volume (for simple "move to" behavior for my enemies) The problem: if i move my piece of ground and also move my NavMeshBoundsvolume in code (using SetActorLocation) the navigation is not rebuilt automatically. My moved piece of grounds get without navigation, even with the nav mesh volume also at the new position. If I do the same in editor it rebuilds (even if I move a little bit on editor while playing the game, it does).

The option "Runtime generation" is checked. Also, I have tried to call "RebuildNavigation" command by C++ but nothing happened. GetWorld()->GetNavigationSystem()->MainNavData->RebuildAll() didn't work too (I don't know if it would be the case...)

Is there a way to regenerate or "translate" a navigation mesh outside the editor using C++?

Product Version: UE 4.9
more ▼

asked Nov 10 '15 at 01:21 PM in C++ Programming

avatar image

11 1 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

It looks like a few people have struggled with this. The last answer / set of comments on this page might help: https://answers.unrealengine.com/questions/178683/47-navmesh-doesnt-build-at-runtime-it-is-checked.html

more ▼

answered Nov 10 '15 at 01:40 PM

avatar image

1.5k 6 6 12

avatar image Daltron Nov 10 '15 at 02:20 PM

Thanks for the quick answer, but I'm afraid I can't use the same solution, as I'm not able to find the "Settings (Next to Marketplace) Then general > Navigation Mesh / Settings - rebuild at runtime" option -- I'm currently using UE 4.9.2. Actually, the option for "Runtime Generation" is "Dynamic" in Project Settings (not just checked as I mentioned); "Force Rebuild on Load" makes no effect for me.

avatar image masmil1988 Oct 04 '17 at 01:44 PM

Did you solve this someway?

avatar image Daltron Feb 11 '18 at 02:10 PM

No, in fact we didn't take this idea of "endless arena" forward.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question