Search Unity

Job friendly api for setting agent path.

Discussion in 'Navigation' started by snacktime, Feb 24, 2019.

  1. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
    We can do path queries in jobs now but we have no way to pass that through to agents. Any chance on getting something to do that?
     
    DwinTeimlon likes this.
  2. adriant

    adriant

    Unity Technologies

    Joined:
    Nov 1, 2016
    Posts:
    69
    We don't plan to support passing a path made of
    PolygonId
    nodes to
    NavMeshAgent.path
    .
     
  3. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
    I didn't even notice you can set path directly, Iv'e always used SetPath. That solves that.
     
  4. adriant

    adriant

    Unity Technologies

    Joined:
    Nov 1, 2016
    Posts:
    69
    Assigning a value to `NavMeshAgent.path` is in fact calling `NavMeshAgent.SetPath()` internally, so they do the same thing.
     
    DwinTeimlon likes this.