Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NavMeshPath

A path as calculated by the navigation system.
Read time 1 minuteLast updated 8 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 _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 _path property.

Constructors

Constructor

Description

NavMeshPath()NavMeshPath constructor.

Properties

Property

Description

cornersCorner points of the path.
statusStatus of the path.

Methods

Method

Description

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