mask
Bitmask that specifies the NavMesh area type at the point of hit.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
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 represents the area type of the NavMesh polygon where the resulting NavMeshHit.position lies.
maskWhen 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 represents the area type of the polygon that blocks the query.
maskWhen the query terminates at an edge of the NavMesh the is 0, to signify that there is no polygon beyond that position.
mask