Objects dissappear when baked with navmesh
In my game, I have a castle ontop of a terrain, where there are AI enemies. When I bake the navmesh, the AI on the terrain work, but the whole castle and AI on the top of the castle cannot be visibly seen in the game tab, even though i can still hit the walls of it.
If I clear it, the following error message is displayed (because the navmesh hasn't been baked for the AI ontop of the castle?):
"SetDestination" can only be called on an active agent that has been placed on a NavMesh. UnityEngine.AI.NavMeshAgent:set_destination(Vector3) Aiscript:Update() (at Assets/Scripts/Aiscript.cs:14)
If i disable the AI ontop of the castle, the game works fine, but I would like a solution that allows me to have AI ontop of my castle while having the castle visible.