言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

NavMeshObstacle.carving

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public var carving: bool;
public bool carving;
public carving as bool

Description

障害物がナビメッシュにカットアウトを作成するか

有効化すると、虫食い状にカットアウトすることでナビメッシュを変更します。虫食いの形状は NavMeshObstacle の境界面積(bounding volume)および半径、高さのナビメッシュ ベーキング設定に依存します。 障害物が移動するとき、カットアウトもまた移動しますが、CPU オーバーヘッドを削減するため虫食い部分は障害物が前回位置から特定距離の場合のみ再計算されます。 carvingMoveThreshold プロパティによりその距離を設定できます。