NavMeshAgent.GetAreaCost(number areaIndex)
Gets the cost for path calculation when crossing area of a particular type.
Parameters:
Name | Type | Description |
---|---|---|
areaIndex | number | Area Index. |
Returns:
type | Description |
---|---|
number | Current cost for specified area index. |
Usage
---@type NavMeshAgent
local navmeshagent;
---@type number
local areaIndex;
local val0 = navmeshagent.GetAreaCost(areaIndex)