NavMeshAgent.SetDestination Manual     Reference     Scripting  
Scripting > Runtime Classes > NavMeshAgent
NavMeshAgent.SetDestination

function SetDestination (target : Vector3) : boolean

Description

Sets or updates the destination. This triggers calculation for a new path.

Note that the path may not become available until after a few frames later. While the path is being computed, pathPending will be true.