Search Unity

NavMeshAgent agentTypeID

Discussion in 'Navigation' started by Dracon27, Jun 16, 2020.

  1. Dracon27

    Dracon27

    Joined:
    Jan 27, 2019
    Posts:
    1
    I'm trying to figure out NavMeshes for my game currently and have hit a bit of a snag. I need to make a bunch of new Agent types, simple enough, but their TypeIDs are all insane Ints. I get that Humanoid is 0, I also read it was hard-coded as that, and that's fine. However, I made 2 more Agents, Worker and Customer and their ID's are -1372625422 and -334000983 respectively. Does anyone know why there's no consistency? Or if there's a way to customize the ID numbers?

    EDIT: Solution found!! (https://answers.unity.com/questions/1650130/change-agenttype-at-runtime.html)
     
    Last edited: Jun 16, 2020
    nadunliyanage likes this.
  2. K-bomb07

    K-bomb07

    Joined:
    Mar 5, 2019
    Posts:
    7
    Hi, I know this post is old, but do you still know the solution to the issue? The page you have linked no longer exists.
     
  3. UNDERHILL

    UNDERHILL

    Joined:
    Jul 6, 2014
    Posts:
    13
    still a thing
     
  4. bgebitekin

    bgebitekin

    Joined:
    Dec 22, 2020
    Posts:
    11