ドキュメント

Unity Engine

Unity Engine

GetNavMeshLayer(GameObject)

Get the navmesh layer for the GameObject.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
注意
Deprecated. GetNavMeshLayer 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 GetNavMeshLayer(GameObject go)

Parameters

The GameObject to check.

Returns

Type

Description

intThe navmesh layer for the GameObject specified.