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

AgentTypeId Determination

Discussion in 'Navigation' started by Xepherys, Sep 16, 2017.

  1. Xepherys

    Xepherys

    Joined:
    Sep 9, 2012
    Posts:
    204
    Is there an easy way to determine what the AgentTypeId of an Agent is? I've finally figured out to use

    NavMesh.GetSettingsByID(int i)

    to assign an agent to a navMesh, but interestingly, my only agent type other than humanoid is id '1479372276'. The UI doesn't present this (and you can't use debug in the Navigation tab like you can with the inspector). Can you call an agent by name instead?
     
  2. adriant

    adriant

    Unity Technologies

    Joined:
    Nov 1, 2016
    Posts:
    68