Async to load scene of NavMesh

Hi all,

I want to load a scene which contains NavMeshAgent, I use the following script to load the scene, but I get an error.

script:
async = Application.LoadLevelAdditiveAsync(nextSceneName);
yield async;

error:
Failed to create agent because there is no valid NavMesh

If a directly load the scene, use “Application.LoadLevel(nextSceneName);”, there will be not bug.

Anyone know the reason?

PS: If you have the Unity3.5 NavMesh demo, great a scene and add the Application.LoadLevelAdditiveAsync logic to load the demo scene, then the will appear.

Thanks a lot!

In the current version of Unity (4.3.3) navmesh still doesn’t work when you load a scene additively: the navmesh agents do not get assigned their proper navmesh.

So as Icetear said: no seamless world. Which is a BIG problem for me…

By the way there’s a very dirty hack here (thanks to Andrew Perry): http://omgwtfgames.com/2013/07/how-to-use-unity-navmeshes-with-loadleveladditive-aka-a-dirty-navmesh-hack/ to try and bypass the problem.

But that’s basically unusable if you have a large interconnected world.

Support for additive loading of navmeshes is coming up, see http://forum.unity3d.com/threads/official-how-can-we-serve-you-better.245901/page-2#post-1626798