x


How to bake nav mesh dynamically

I have a random level generator that builds levels out of preset pieces. I'd like to use Unity's built in Nav Mesh. Can I dynamically bake the mesh at run time?

more ▼

asked May 04 '12 at 05:06 AM

Storm Kiernan gravatar image

Storm Kiernan
177 19 25 32

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

No, Unity cannot create a NavMesh at runtime, or modify an existing one at runtime. A NavMesh needs to be baked in the editor.

You might want to look into grid-based or map-based (which can technically be considered grid-based) navigation and pathfinding algorithms such as the ever-popular (and not without reasons) A*.

more ▼

answered May 04 '12 at 07:11 AM

asafsitner gravatar image

asafsitner
2.4k 2 8 19

That is really disappointing.

May 04 '12 at 02:36 PM Storm Kiernan

+1 for disappointment

Feb 07 at 08:08 PM dchen05

If someone comes here looking to load in a NavMesh from a prefab or scene. This thread will help you. http://forum.unity3d.com/threads/122545-Problem-with-NavMesh-and-Asynchronous-load

Feb 08 at 05:44 PM dchen05
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Topics:

x232
x138
x81

asked: May 04 '12 at 05:06 AM

Seen: 1660 times

Last Updated: Feb 08 at 05:44 PM