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

NavMeshAgent on Entity

Discussion in 'Entity Component System' started by DirectCherry, Mar 5, 2020.

  1. DirectCherry

    DirectCherry

    Joined:
    May 29, 2019
    Posts:
    4
    Is there any way for me to get an entity to pathfind and move throughout a navmesh in the same way that a GameObject does? I have searched all over and haven't found an answer. Any guidance would be much appreciated!

    I'm using Unity 2019.3
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,626
  3. DirectCherry

    DirectCherry

    Joined:
    May 29, 2019
    Posts:
    4
    I've seen someone mention that NavMeshQuery somewhere before, but I'm really confused as to how this is supposed to be used. I see a bunch of functions (most of which seen useless) and don't really know what I need to do to build my own agent. Is there a guide or explanation somewhere?