ベイクされた NavMesh にアクセスするシングルトンのクラス
Use the NavMesh class to perform spatial queries such as pathfinding and walkability tests. This class also lets you set the pathfinding cost for specific area types, and tweak the global behavior of pathfinding and avoidance.
Before you can use spatial queries, you must first bake the NavMesh to your scene.
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.
AllAreas | すべての NavMesh エリアを含むエリアマスク定数 |
avoidancePredictionTime | エージェントが衝突をどの程度まで予測して回避するかについての方法を説明します。 |
onPreUpdate | Set a function to be called before the NavMesh is updated during the frame update execution. |
pathfindingIterationsPerFrame | The maximum number of nodes processed for each frame during the asynchronous pathfinding process. |
AddLink | Adds a link to the NavMesh. The link is described by the NavMeshLinkData struct. |
AddNavMeshData | Adds the specified NavMeshData to the game. |
CalculatePath | 2 点間の位置を計算して、ナビメッシュオブジェクト上で移動できる範囲のパスを作成します |
CalculateTriangulation | 現在のナビメッシュの三角測量 |
CreateSettings | Creates and returns a new entry of NavMesh build settings available for runtime NavMesh building. |
FindClosestEdge | 特定の位置からもっとも近いナビメッシュオブジェクトの辺の情報を取得します |
GetAreaCost | エリアタイプのジオメトリ上でパスを検索するコストを取得します |
GetAreaFromName | ナビメッシュのエリアタイプ名からインデックスを返します |
GetLinkOwner | Gets the object, if any, that is associated with the link instance. |
GetSettingsByID | Returns an existing entry of NavMesh build settings. |
GetSettingsByIndex | Returns an existing entry of NavMesh build settings by its ordered index. |
GetSettingsCount | Returns the number of registered NavMesh build settings. |
GetSettingsNameFromID | Returns the name associated with the NavMesh build settings matching the provided agent type ID. |
IsLinkActive | Determines whether the instance of the link can be used to calculate paths, and if NavMesh agents can move over it. |
IsLinkOccupied | Determines whether or not a NavMesh agent is currently using this link. |
IsLinkValid | Determines whether the link instance is part of the current data used for navigation. |
Raycast | ナビメッシュ上の二点間でレイを飛ばします |
RemoveAllNavMeshData | Removes all NavMesh surfaces and links from the game. |
RemoveLink | Removes a link from the NavMesh. |
RemoveNavMeshData | Removes the specified NavMeshDataInstance from the game, making it unavailable for agents and queries. |
RemoveSettings | Removes the build settings matching the agent type ID. |
SamplePosition | Finds the nearest point based on the NavMesh within a specified range. |
SetAreaCost | すべてのエージェントがレイヤーのジオメトリ上を横切るためのコストを設定します |
SetLinkActive | Activates or deactivates the link instance. An active link instance can be traversed by agents and used to plan paths, but a deactivated link cannot. |
SetLinkOwner | Associates an object with the instance of a link. |
OnNavMeshPreUpdate | Registers callback methods to be invoked before the NavMesh system updates. |