Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


costOverride

Modify pathfinding cost for the link.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
Warning
Deprecated. costOverride has been deprecated together with the class. Declare the object as NavMeshLink and use costModifier instead.
public float costOverride { get; set; }

Remarks

When the costOverride value is non-negative the cost of moving over the OffMeshLink is equivalent to the costOverride value times the Euclidean distance between OffMeshLink end points.