Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NavMeshPath

A path as calculated by the navigation system.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public sealed class NavMeshPath

Remarks

The path is represented as a list of waypoints stored in the NavMeshPath.corners array. These points are not set directly from user scripts but a NavMeshPath with points correctly assigned is returned by the NavMesh.CalculatePath function and the NavMeshAgent.path property.

Constructors

Constructor

Description

NavMeshPath()NavMeshPath constructor.

Properties

Property

Description

cornersCorner points of the path. (Read Only)
statusStatus of the path. (Read Only)

Methods

Method

Description

ClearCornersErase all corner points from path.
GetCornersNonAllocCalculate the corners for the path.