Version: 2023.2
言語: 日本語
public static bool IsLinkActive (AI.NavMeshLinkInstance handle);

パラメーター

handle The link instance whose state to query.

戻り値

bool True if agents can plan paths through, and traverse, this instance of the link, otherwise false.

説明

Determines whether the instance of the link can be used to calculate paths, and if NavMesh agents can move over it.

Use this method to determine if paths for the assigned agent type can traverse this link or not.
A link instance is active by default regardless of whether the ends connect to NavMesh surfaces or not. To change the link's state, call SetLinkActive. After you remove the link from the running navigation system this method always returns false.

This method is available as of 2023.2.

See Also: SetLinkActive.

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