Version: 5.6


class in UnityEngine.AI



ベイクされた NavMesh にアクセスするシングルトンのクラス

NavMesh は Spatial Query を実行するために使用できます。経路探索することや移動しやすさのテストと同様に、特定のエリアタイプが経路のコストを設定し、経路探索や障害物回避するグローバルな動作を微調整します。

Spatial Query を使用するために、最初にシーンの NavMesh をベイクする必要があります。

See also:
Building a NavMesh – for more information on how to setup and bake NavMesh
Areas and Costs – to learn how to use different Area types.
NavMeshAgent – to learn how to control and move NavMesh Agents.
NavMeshObstacle – to learn how to control NavMesh Obstacles using scripting.
OffMeshLink – to learn how to control Off-Mesh Links using scripting.

Static 変数

AllAreasすべての NavMesh エリアを含むエリアマスク定数
onPreUpdateSet a function to be called before the NavMesh is updated during the frame update execution.

Static 関数

AddLinkAdds a link to the NavMesh. The link is described by the NavMeshLinkData struct.
AddNavMeshDataAdds the specified NavMeshData to the game.
CalculatePath2 点間の位置を計算して、ナビメッシュオブジェクト上で移動できる範囲のパスを作成します
CreateSettingsCreates and returns a new entry of NavMesh build settings available for runtime NavMesh building.
GetSettingsByIDReturns an existing entry of NavMesh build settings.
GetSettingsByIndexReturns an existing entry of NavMesh build settings by its ordered index.
GetSettingsCountReturns the number of registered NavMesh build settings.
GetSettingsNameFromIDReturns the name associated with the NavMesh build settings matching the provided agent type ID.
RemoveLinkRemoves a link from the NavMesh.
RemoveNavMeshDataRemoves the specified NavMeshDataInstance from the game, making it unavailable for agents and queries.
RemoveSettingsRemoves the build settings matching the agent type ID.
SamplePosition指定した範囲内の NavMesh で最も近い点を検索します


OnNavMeshPreUpdateA delegate which can be used to register callback methods to be invoked before the NavMesh system updates.