기술 자료

Unity Engine

Unity Engine

costOverride

Modify pathfinding cost for the link.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
경고
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.