Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question NavMeshSurface - "No valid NavMesh" when one exists?

Discussion in 'Navigation' started by Apollogeist, Jan 2, 2023.

  1. Apollogeist


    Apr 9, 2016
    I have a setup that involves multiple scenes with linked NavMeshes. When I add a NavAgent to the scene, I get a warning saying "Failed to create agent because there is no valid NavMesh". This is strange because my agent is in direct contact with a NavMesh from the start and is able to start pathing. Other than the irritating warning, everything seems to be working fine.

    My suspicion is that it has something to do with the fact that the agent and the mesh are in different scenes, though both are already loaded in the editor when I enter play mode. If I can ensure that the NavMesh scene is loaded before the agent will that fix the problem? Any help is appreciated!

    Attached Files:

  2. androvisuals_unity


    Mar 23, 2020
    try moving your agent a little bit above the floor instead of going through it. It'll go to the correct height on start up and that may resolve your issue.