ドキュメント

Unity Engine

Unity Engine

GetNavMeshAreaFromName(string)

Get the navmesh area index from the area name.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
注意
Deprecated. GetNavMeshAreaFromName has been deprecated. Use NavMesh.GetAreaFromName instead.
public static int GetNavMeshAreaFromName(string name)

Parameters

name

NavMesh area name to query.

Returns

Type

Description

intThe NavMesh area index. If there is no NavMesh area with the requested name, the return value is -1.