Skip to content

format

typescript
NavMeshPath.state

class: NavMeshPath

description

The state of the path from the current position of the NavMeshAgent to the destination. If the state is PathComplete, the returned path is a complete path from the agent's current position to the destination. If the state is PathInvalid, the returned path is a partial path, which could be due to the path being too long or there being no reachable path from the agent to the destination. If the state is PathPartial, it means that the agent's initial position is not on the navigation mesh, or the set destination is not on the navigation mesh, or there is some other unpathable state.

parameter

param_nametypedescription

reture

typedescription
NavMeshPathStatusThe state of the path from the current position of the NavMeshAgent to the destination.

code example