NavMesh Actions
v1.0
NavMesh Query Result
[System.Serializable]
public class NavMeshQueryResult
{
// Query success/failure
public bool success; // True if operation succeeded
// Hit/sample data
public Vector3 position; // Hit/sample/edge position
public Vector3 normal; // Surface normal at hit point
public float distance; // Distance to hit/edge
public int areaMask; // NavMesh area mask
public NavMeshHit hit; // Full Unity NavMeshHit data
// Path-specific data (only for CalculatePath)
public NavMeshPath path; // The calculated path
public List<Vector3> pathCorners; // Convenient list of path corners
}Using the NavMeshQueryResult Data
Retrieve Blackboard Data
Chain Actions Together
Practical Example
Blackboard Posting Actions
NavMesh Calculate Path Action
NavMesh Sample Position Action
NavMesh Raycast Action
NavMesh Find Closest Edge Action
NavMeshAgent Actions
Set NavMeshAgent Avoidance Priority Action
Set NavMeshAgent Destination Action
Set NavMeshAgent Speed Action
Stop NavMeshAgent Action
Warp NavMeshAgent Action
Last updated