Version: 2022.2
언어: 한국어
Experimental: this API is experimental and might be changed or removed in the future.

PolygonId

struct in UnityEngine.Experimental.AI

매뉴얼로 전환

설명

Represents a compact identifier for the data of a NavMesh node.

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. See Also: NavMeshSurface.

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.

See Also: NavMeshQuery.IsValid.

Public 함수

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.

연산자

operator !=Returns true if two PolygonId objects refer to different NavMesh nodes or if only one of them is null.
operator ==Returns true if two PolygonId objects refer to the same NavMesh node or if they are both null.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961