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!