# mask

> Bitmask that specifies the NavMesh area type at the point of hit.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.AI](/engine/6000.7/script-reference/unityengine/ai.md)
* **Assembly:** UnityEngine.AIModule

```csharp
public int mask { get; set; }
```

### Remarks

The index at which the binary representation of the integer contains a bit turned on is the number of the area type.

If the query proceeds uninterrupted to the target position, the `mask` represents the area type of the NavMesh polygon where the resulting [\_position](/engine/6000.7/script-reference/unityengine/ai/navmeshhit/position.md) lies.

When the query terminates at the edge of a NavMesh polygon that is of a different type than the ones allowed by the input parameters, the `mask` represents the area type of the polygon that blocks the query.

When the query terminates at an edge of the NavMesh the `mask` is 0, to signify that there is no polygon beyond that position.
