文档

Unity Engine


User Manual

Script Reference

Unity Engine


GetNavMeshArea(GameObject)

Get the navmesh area index for the GameObject.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
警告
Deprecated. GetNavMeshArea has been deprecated. To relate a GameObject to an area type and retrieve their relation later, create a NavMeshBuildMarkup and pass it into UnityEngine.AI.NavMeshBuilder.CollectSources().
public static int GetNavMeshArea(GameObject go)

Parameters

The GameObject to query.

Returns

Type

Description

intNavMesh area index.