기술 자료

Unity Engine

Unity Engine

GetAreaCost(int)

Returns the area cost multiplier for the given area type for this filter.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public float GetAreaCost(int areaIndex)

Parameters

areaIndex

Index to retreive the cost for.

Returns

Type

Description

floatThe cost multiplier for the supplied area index.

Remarks

The default value is 1.