NavMesh.RemoveNavMeshData

切换到手册
public static void RemoveNavMeshData (AI.NavMeshDataInstance handle);

参数

handle要删除的导航网格的实例。

描述

从游戏中删除指定的 NavMeshDataInstance,使其无法用于代理和查询。

使用 AddNavMeshData 返回的实例删除相应的导航网格数据。如果实例无效(如之前已删除),则调用将不起作用。

另请参阅:NavMeshDataInstance.RemoveNavMesh.RemoveAllNavMeshData

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