Home
Manual
Reference
Scripting
Scripting Reference
Switch to Component
NavMeshAgent
.FindClosestEdge
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Attributes
Enumerations
History
Index
NavMeshAgent
All Members
Variables
acceleration
angularSpeed
autoRepath
autoTraverseOffMeshLink
avoidancePriority
baseOffset
currentOffMeshLinkData
desiredVelocity
destination
hasPath
height
isOnOffMeshLink
isPathStale
nextOffMeshLinkData
nextPosition
obstacleAvoidanceType
path
pathPending
pathStatus
radius
remainingDistance
speed
steeringTarget
stoppingDistance
updatePosition
updateRotation
velocity
walkableMask
Functions
ActivateCurrentOffMeshLink
CalculatePath
CompleteOffMeshLink
FindClosestEdge
GetLayerCost
Move
Raycast
ResetPath
Resume
SamplePathPosition
SetDestination
SetLayerCost
SetPath
Stop
Inherited Variables
animation
audio
camera
collider
constantForce
enabled
gameObject
guiText
guiTexture
hideFlags
hingeJoint
light
name
networkView
particleEmitter
particleSystem
renderer
rigidbody
tag
transform
Inherited Functions
BroadcastMessage
CompareTag
GetComponent
GetComponentInChildren
GetComponents
GetComponentsInChildren
GetInstanceID
SendMessage
SendMessageUpwards
ToString
Inherited Class Functions
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
Instantiate
operator !=
operator ==
operator bool
function
FindClosestEdge (out hit :
NavMeshHit
) :
boolean
Parameters
Name
Description
hit
Holds the properties of the resulting location.
Returns
boolean - True if a nearest edge is found.
Description
Locate the closest NavMesh edge.