Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


hasPath

Does the agent currently have a path? (Read Only)
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public bool hasPath { get; }

Remarks

This property will be true if the agent has a path calculated to the desired destination and false otherwise.