Search Unity

Question Need help with NavMesh in AR Foundation

Discussion in 'Navigation' started by it_master, Aug 1, 2020.

  1. it_master

    it_master

    Joined:
    Jul 25, 2015
    Posts:
    13
    I am creating a NavMesh in runtime so that I would be able to create a path for the enemy AI, the problem however is that while the NavMesh generation worked outside of AR, inside of it, things got a bit glitchy as even though I made sure that the Nav Mesh Generation is run every frame, the error that theAgent can't be created because the agent is not near to the NavMesh still exists, even though the error didn't appear outside of AR.

    How do I make sure that the Navmesh is created near the NavMesh Agents?

    Thanks in advance.
     
    EWimsett likes this.