x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

NavMesh in two different levels

Hi there,
I'm using a navmesh in my level for moving (using VR teleport system).
On certain action, the game opens another level (not level streaming).
The navigation works fine in the first level, but once the second is loaded, the navigation doesn't work. Each time I open the second level in the editor, the recast_navmesh data has disappeared and I have to rebuild the navmesh again. But it doesn't work either at runtime.
Please note that the pawn used is the same in both levels, so it call the default NavigationQueryFilter through a "Project point to navigation" set as a boolean to validate the move.

Could anybody help me ? Thanks a lot !

Product Version: UE 4.15
Tags:
more ▼

asked May 12 '17 at 01:56 PM in Using UE4

avatar image

Teapot Creation
165 22 32 47

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

1 answer: sort voted first

the game opens another level (not level streaming).

How exactly do you open your "another level"? And how do you spawn and guarantee persistence of your player pawn (and if you really need it)?

more ▼

answered May 12 '17 at 02:05 PM

avatar image

MieszkoZ STAFF
7.3k 223 57 412

avatar image Teapot Creation May 12 '17 at 06:27 PM

Well, my game has 2 levels. And obviously, the game starts in one.
In the first one, when I hit a key, the blueprint calls an Open Level function, and loads the second one.
In each level I've put a Pawn defined by the same blueprint but the functionnalities have to be similar so 2 different versions would be useless imo.

avatar image MieszkoZ STAFF May 15 '17 at 03:00 PM

In each level I've put a Pawn defined by the same blueprint

It's not the same pawn then, just of the same class :)

Sounds like a navigation setup issue. The project sounds simple enough to pack and share. If you did I'd easily nail down the issue. If not, are you able to use navigation in the second level at all? I mean, is there any case where it works for you (like PIE)?

avatar image Teapot Creation May 15 '17 at 03:11 PM

Yes, I meant the same class, sorry :)
Unfortunately I can't pack&share the thing for now. I'll let you know if I can asap.
In the second level I can't use the navigation at all : the teleporting system finds no place to teleport from the spawn point. What do you mean by PIE ?

avatar image Teapot Creation May 16 '17 at 02:08 PM

Hi there,
I didn't modify my project since last friday, and today the navigation works wel in both levels.
I can't explain why, but now it works. Thanks, though !

avatar image Teapot Creation Jul 03 '17 at 03:40 PM

Hi there, I have the problem again...
I've made some changes in my game (I added some IA characters walking around, using the same navmesh as the player), and the move is only possible in one of the 2 levels now.
I've tried a lot of things (force rebuild on load, dynamic navmesh, using navquery in the player pawn...), but nothing works. Sometimes it works in one level, sometimes in the other.
Has someone an idea ?

(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