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

function CalculatePath (targetPosition : Vector3, path : NavMeshPath) : boolean

Parameters

NameDescription
targetPosition The final position of the path requested.
path The resulting path.

Returns

boolean - True if a path is found.

Description

Calculate a path to a specified point and store the resulting path.