ナビメッシュエージェント
This component is attached to a mobile character in the game to allow it to navigate the Scene using the NavMesh. See the Navigation section of the manual for further details.
acceleration | エージェントが経路を辿る最大加速度。単位はメートル / 秒の 2 乗 |
agentTypeID | The type ID for the agent. |
angularSpeed | 経路を辿るときの最大回転速度(度/ 秒) |
areaMask | どの NavMesh エリアがパスできるか指定します。 AreaMask を変更するとパスは古いものになります ( isPathStale を参照してください)。 |
autoBraking | 目的地点を通り越すこと回避するため NavMeshAgent に自動ブレーキをかけるかどうか |
autoRepath | エージェントが移動先に着いたり、途中で破棄された場合、新しいパスを取得する必要があるかどうか |
autoTraverseOffMeshLink | エージェントが自動的にオフメッシュリンクを横切って移動するかどうか |
avoidancePriority | アボイダンス(回避)優先度レベル |
baseOffset | GameObject からの相対的な垂直変位 |
currentOffMeshLinkData | 現在の OffMeshLinkData |
desiredVelocity | 回避行動による潜在的な移動も含むエージェントの期待速度(読み取り専用) |
destination | ワールド空間単位でエージェントの目的地を設定し取得します |
hasPath | エージェントが経路を持っているかどうか(読み取り専用) |
height | エージェントの高さです。障害物をくぐるときに使用されます |
isOnNavMesh | エージェントは現在、NavMesh にバインドされてますか。(Read Only) |
isOnOffMeshLink | エージェントが OffMeshLink オブジェクト上に配置されているか(読み取り専用) |
isPathStale | 現在のパスが古いかどうか(読み取り専用) |
isStopped | This property holds the stop or resume condition of the NavMesh agent. |
navMeshOwner | Returns the owning object of the NavMesh the agent is currently placed on (Read Only). |
nextOffMeshLinkData | 現在のパスから次にあたる OffMeshLinkData |
nextPosition | NavMesh Agent のシミュレーション位置を取得や設定します。 |
obstacleAvoidanceType | 回避の品質レベル |
path | 現在の経路の取得や設定をするプロパティー |
pathPending | 経路探索の準備ができているかどうか(読み取り専用) |
pathStatus | 現在の経路のステータス(完了、未完了、無効) |
radius | エージェントの回避する半径 |
remainingDistance | エージェントの位置および現在の経路での目標地点の間の距離(読み取り専用) |
speed | 経路を移動する際の最大移動速度 |
steeringTarget | パスに沿った現在の運用ターゲット(読み取り専用) |
stoppingDistance | 目標地点のどれぐらい手前で停止するかの距離 |
updatePosition | 変換位置がシミュレーションされたエージェントの位置と同期されているかどうかにかかわらず取得か設定します。デフォルト値は True です。 |
updateRotation | エージェントの回転を更新すべきかどうか |
updateUpAxis | Allows you to specify whether the agent should be aligned to the up-axis of the NavMesh or link that it is placed on. |
velocity | NavMeshAgent コンポーネントの現在の速度へのアクセス、手動でエージェントの速度を設定します。 |
ActivateCurrentOffMeshLink | 現在の OffMeshLink オブジェクトを有効/無効にします |
CalculatePath | エージェントが目標値までにたどり着く道程を計算し、path 引数に格納します |
CompleteOffMeshLink | 現在の OffMeshLink 上の移動を完了します。 |
FindClosestEdge | もっとも近いナビメッシュの辺の位置を取得します |
GetAreaCost | 特定のタイプの地面を横断するためのコストを取得します |
Move | 現在の位置から相対的に移動します |
Raycast | エージェントを移動させずにナビメッシュ内の目的地に向かってのパスをトレースします |
ResetPath | 現在の経路を削除します |
SamplePathPosition | 現在の経路に沿って位置をサンプリングします |
SetAreaCost | レイヤータイプのジオメトリ上を横切るためのコストを設定します |
SetDestination | 移動先の目的地点を新規設定するか更新して、新たに経路探索を開始します |
SetPath | エージェントに新たな経路を割り当てます |
Warp | 指定した位置にエージェントをワープさせます。 |
enabled | 有効であれば更新され、無効であれば更新されません。 |
isActiveAndEnabled | Reports whether a GameObject and its associated Behaviour is active and enabled. |
gameObject | このコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。 |
tag | ゲームオブジェクトのタグ |
transform | The Transform attached to this GameObject. |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | オブジェクト名 |
BroadcastMessage | ゲームオブジェクトまたは子オブジェクトにあるすべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。 |
CompareTag | Checks the GameObject's tag against the defined tag. |
GetComponent | Gets a reference to a component of type T on the same GameObject as the component specified. |
GetComponentInChildren | Gets a reference to a component of type T on the same GameObject as the component specified, or any child of the GameObject. |
GetComponentInParent | Gets a reference to a component of type T on the same GameObject as the component specified, or any parent of the GameObject. |
GetComponents | Gets references to all components of type T on the same GameObject as the component specified. |
GetComponentsInChildren | Gets references to all components of type T on the same GameObject as the component specified, and any child of the GameObject. |
GetComponentsInParent | Gets references to all components of type T on the same GameObject as the component specified, and any parent of the GameObject. |
SendMessage | ゲームオブジェクトにアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
SendMessageUpwards | ゲームオブジェクトと親(の親、さらに親 ... )にアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
TryGetComponent | Gets the component of the specified type, if it exists. |
GetInstanceID | Gets the instance ID of the object. |
ToString | Returns the name of the object. |
Destroy | Removes a GameObject, component or asset. |
DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
FindAnyObjectByType | Retrieves any active loaded object of Type type. |
FindFirstObjectByType | Retrieves the first active loaded object of Type type. |
FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
Instantiate | original のオブジェクトをクローンします |
bool | オブジェクトが存在するかどうか |
operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.