Home
Manual
Reference
Scripting
Scripting Reference
Switch to Component
NavMeshAgent
.SetPath
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
SetPath (path :
NavMeshPath
) :
boolean
Parameters
Name
Description
path
New path to follow.
Returns
boolean - True if succesfully assigned.
Description
Assign path to the agent.