Home

Awesome

UnityNavMeshAreas

Self-updating Areas enum for NavMesh in Unity

Usage Examples
Agent.areaMask = (int)NavMeshAreas.Walkable;

var mask1 = (AreaMask)(NavMeshAreas.Walkable | NavMeshAreas.Climb);
var mask2 = mask1.Add(NavMeshAreas.Edge);
var mask3 = mask2.Remove(NavMeshAreas.Climb);

Unity Version: 2018.3