기술 자료

Unity Engine

Unity Engine

SetAreaCost(int, float)

Sets the cost for traversing over areas of the area type.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public void SetAreaCost(int areaIndex, float areaCost)

Parameters

areaIndex

Area cost.

areaCost

New cost for the specified area index.

Remarks

If you enable or disable the agent then the cost will be reset to the default layer cost.