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

function FindClosestEdge (out hit : NavMeshHit) : boolean

Parameters

NameDescription
hit Holds the properties of the resulting location.

Returns

boolean - True if a nearest edge is found.

Description

Locate the closest NavMesh edge.