Class NavMeshArea
Namespace: ValveResourceFormat.NavMesh
Assembly: ValveResourceFormat.dll
Represents a navigation mesh area.
public class NavMeshAreaInheritance
object ← NavMeshArea
Properties
AreaId
Gets or sets the area identifier.
public uint AreaId { get; set; }Property Value
uint
AttributeFlags
Gets or sets the base attribute flags of this area.
public NavAttributeFlags AttributeFlags { get; set; }Property Value
Remarks
Areas also have a dynamic attribute set, that one is a 32-bit runtime only value and is never stored in the file. The named values of NavAttributeFlags only apply to version 35 and newer.
Connections
Gets or sets the connections to other areas.
public NavMeshConnection[][] Connections { get; set; }Property Value
CornerGravity
Gets or sets the gravity direction at each corner, parallel to NavMeshArea.Corners, or null when the file does not store gravity directions.
public Vector3[]? CornerGravity { get; set; }Property Value
Vector3[]?
Corners
Gets or sets the corner vertices.
public Vector3[] Corners { get; set; }Property Value
Vector3[]
HidingSpots
Gets or sets the hiding spots inside this area.
public NavMeshHidingSpot[] HidingSpots { get; set; }Property Value
Remarks
Counter-Strike 2 stores its hiding spots in NavMeshFile.CustomData, they are also read from there.
HullIndex
Gets or sets the hull index.
public byte HullIndex { get; set; }Property Value
byte
LaddersAbove
Gets or sets the ladders above this area.
public uint[] LaddersAbove { get; set; }Property Value
uint[]
LaddersBelow
Gets or sets the ladders below this area.
public uint[] LaddersBelow { get; set; }Property Value
uint[]
MovableMeshId
Gets or sets the id of the movable nav mesh this area belongs to, or NavMeshFile.NoMovableMesh when it belongs to the static world.
public uint MovableMeshId { get; set; }Property Value
uint
Methods
Read(BinaryReader, NavMeshFile, NavMeshPolygon[]?)
Reads the navigation mesh area from a binary reader.
public void Read(BinaryReader binaryReader, NavMeshFile navMeshFile, NavMeshPolygon[]? polygons = null)Parameters
binaryReader BinaryReader
navMeshFile NavMeshFile
polygons NavMeshPolygon[]?

