Version: 2023.2
LanguageEnglish
  • C#

NavMeshLinkInstance

struct in UnityEngine.AI

/

Implemented in:UnityEngine.AIModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Represents a link available for pathfinding.

You obtain a valid object when you call NavMesh.AddLink to create one specific link in the navigation system. Conversely, you need to pass it into NavMesh.RemoveLink to remove that instance of the link from the system. Use this object to check or modify the state of the link instance by calling the following methods: NavMesh.IsLinkValid, NavMesh.IsLinkOccupied, NavMesh.IsLinkActive, NavMesh.SetLinkActive, NavMesh.GetLinkOwner and NavMesh.SetLinkOwner.

Empty objects created when you instantiate this struct do not represent any link that exists in the navigation system. The NavMesh.IsLinkValid and NavMesh.IsLinkActive methods return a value of false for objects created in this manner.

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