Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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

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

  1. Apollogeist

    Apollogeist

    Joined:
    Apr 9, 2016
    Posts:
    3
    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

    androvisuals_unity

    Joined:
    Mar 23, 2020
    Posts:
    47
    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.