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

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,752
  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?