Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PolygonId

Represents a compact identifier for the data of a NavMesh node.
Read time 1 minuteLast updated 7 days ago

Definition

Warning
Deprecated. The experimental PolygonId struct has been deprecated. Use NavNode instead.
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

EqualsReturns
true
if two PolygonId objects refer to the same NavMesh node.
GetHashCodeReturns the hash code for use in collections.
IsNullReturns
true
if the PolygonId has been created empty and has never pointed to any node in the NavMesh.

Operators

Operator

Description

operator ==Returns
true
if two PolygonId objects refer to the same NavMesh node or if they are both null.
operator !=Returns
true
if two PolygonId objects refer to different NavMesh nodes or if only one of them is null.