NavMesh.FindClosestEdge Manual     Reference     Scripting  
Scripting > Runtime Classes > NavMesh
NavMesh.FindClosestEdge

static function FindClosestEdge (sourcePosition : Vector3, out hit : NavMeshHit, passableMask : int) : boolean

Parameters

NameDescription
sourcePosition The origin of the distance query.
hit Holds the properties of the resulting location.
passableMask A mask specifying which NavMesh layers can be passed when finding the nearest edge.

Returns

boolean - True if a nearest edge is found.

Description

Locate the closest NavMesh edge from a point on the NavMesh.