Version: 2023.2
언어: 한국어

NavMesh.IsLinkOccupied

매뉴얼로 전환
public static bool IsLinkOccupied (AI.NavMeshLinkInstance handle);

파라미터

handle The link instance whose state to query.

반환

bool True if an agent is currently traversing the link, otherwise false.

설명

Determines whether or not a NavMesh agent is currently using this link.

Use this method to determine if your NavMesh agent can move onto the specified NavMesh link instance. Only one NavMesh agent can traverse a NavMesh link instance at any one time, so your agent can't move onto a NavMesh link instance that is already occupied. A NavMesh link instance is occupied when any NavMesh agent moves onto the link as part of the path the agent has calculated to the destination. When the agent moves off of the link, either automatically or through a call to NavMeshAgent.CompleteOffMeshLink, the link instance is no longer occupied.

This method is available as of 2023.2.

See Also: NavMeshAgent.isOnOffMeshLink.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961