NavMesh.CalculatePath

static function CalculatePath (sourcePosition : Vector3, targetPosition : Vector3, passableMask : int, path : NavMeshPath) : boolean

Parameters

NameDescription
sourcePosition The initial postion of the path requested.
targetPosition The final position of the path requested.
passableMask A mask specifying which NavMesh layers can be passed when calculating a path.
path The resulting path.

Returns

boolean - True if a path is found.

Description

Calculate a path between two points and store the resulting path.