Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAreaCost(int)

Returns the area cost multiplier for the given area type for this filter.
Read time 1 minuteLast updated 13 days ago

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.