Survival Shooter Tutorial fix for Unity 5

Hi, I’m trying to do the Survival Shooter tutorial which requires me to download the assets. I understand that the assets are for unity 4.6, so while importing I was asked to update the files to unity 5, so I did.

I then tried running the saved level to see if everything was working, and for the most part it was. I can move, shoot and the sound works but no enemies spawn, they do show up in the hierarchy but not in the scene. I get this warning when playing,

“Failed to create agent because there is no valid NavMesh
UnityEngine.Object:Instantiate(Object, Vector3, Quaternion)
CompleteProject.EnemyManager:Spawn() (at Assets/_CompletedAssets/Scripts/Managers/EnemyManager.cs:33)”

I also get this error ““SetDestination” can only be called on an active agent that has been placed on a NavMesh.
CompleteProject.EnemyMovement:Update() (at Assets/_CompletedAssets/Scripts/Enemy/EnemyMovement.cs:30)”

So the problem is obviously the NavMesh but I don’t know how to fix this?

Thanks in advance.

Hi there!

I found where the problem was coming from.
I just had to re-bake my NavMesh for the scene and you should be good to go!
Hope that might help you

See ya!

“The Survival Shooter was again made in Unity 4 however we are working on a Unity 5 version and hope to have this ready soon. This will either replace or join the current version on the Asset Store.”

I had the same problem, but then realized had left the Game in Play mode while creating all the parts for the Bake. When I did them again not in Play mode, it worked

Hey guys,

For the Navigation, I guess that we have missed sth. Before clicking the “bake” button, we should choose the environment in Hierarchy first. Otherwise, Unity doesn’t know what you want to brake at all. Thus, the enemy is locked up aat doorway. If you choose environment in hierarchy, the rebrake. It works. I hope that this commnet is useful. Thanks.