学ぶ
エンジンクラス
Path
作成できません
複製されていません

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。


概要
プロパティ
イベント
Blocked(blockedWaypointIdx: number):RBXScriptSignal
Unblocked(unblockedWaypointIdx: number):RBXScriptSignal
継承されたメンバー

APIリファレンス
プロパティ
Status
読み取り専用
複製されていません
並列読み取り
機能: Basic
Path.Status:Enum.PathStatus

方法
CheckOcclusionAsync
非推奨

ComputeAsync
イールド
機能: Basic
Path:ComputeAsync(
start:Vector3, finish:Vector3
):()
パラメータ
start:Vector3
finish:Vector3
戻り値
()

GetPointCoordinates
非推奨

GetWaypoints
機能: Basic
Path:GetWaypoints():{any}
戻り値
コードサンプル
パスのウェイポイントを取得
local PathfindingService = game:GetService("PathfindingService")
local path = PathfindingService:CreatePath()
local PATH_START = Vector3.new(0, 1, 0)
local PATH_END = Vector3.new(100, 1, 25)
path:ComputeAsync(PATH_START, PATH_END)
if path.Status == Enum.PathStatus.Success then
local waypoints = path:GetWaypoints()
for _, waypoint in pairs(waypoints) do
print(waypoint.Position)
end
end

イベント
Blocked
機能: Basic
Path.Blocked(blockedWaypointIdx:number):RBXScriptSignal
パラメータ
blockedWaypointIdx:number

Unblocked
機能: Basic
Path.Unblocked(unblockedWaypointIdx:number):RBXScriptSignal
パラメータ
unblockedWaypointIdx:number

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。