Skip to main content

NavMesh.GetAreaFromName(string areaName)

Returns the area index for a named NavMesh area type.

Parameters:

NameTypeDescription
areaNamestringName of the area to look up.

Returns:

typeDescription
numberIndex if the specified are, or -1 if no area found.

Usage

---@type string
local areaName;


local val0 = NavMesh:GetAreaFromName(areaName)