PolygonId
Represents a compact identifier for the data of a NavMesh node.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Experimental.AI
- Assembly: UnityEngine.AIModule
- Implements: IEquatable<PolygonId>
public struct PolygonId : IEquatable<PolygonId>
Remarks
It is used in NavMeshQuery operations for pinpointing and getting access to relevant nodes in the NavMesh. Each node can be used by only one type of agent.
This identifier becomes invalid once the node gets removed from the NavMesh, either by completely removing the surface or by modifying the surface in the node's immediate vicinity.
Additional Resources: html, NavMeshQuery.IsValid
Methods
Method | Description |
|---|---|
| Equals | Returns |
| GetHashCode | Returns the hash code for use in collections. |
| IsNull | Returns |
Operators
Operator | Description |
|---|---|
| operator == | Returns |
| operator != | Returns |