学ぶ
エンジンクラス
WireframeHandleAdornment

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


概要
方法
AddLine(from: Vector3,to: Vector3):()
AddLines(points: {any}):()
AddPath(points: {any},loop: boolean):()
AddText(point: Vector3,text: string,size: number):()
Clear():()
継承されたメンバー
コードサンプル
基本パスワイヤーフレーム
local wireframe = script.Parent
-- 四つの点を正方形の配置で宣言する
local pathArray = {
Vector3.new(-10, 10, 0),
Vector3.new(10, 10, 0),
Vector3.new(10, -10, 0),
Vector3.new(-10, -10, 0)
}
-- パスを装飾に適用し、閉じる(開始点と終了点を接続する)
wireframe:AddPath(pathArray, true)
マルチカラーワイヤーフレーム
local wireframe = script.Parent
wireframe.Color3 = Color3.fromRGB(255, 0, 0) -- 次の行を赤に設定
wireframe:AddLine(Vector3.new(-10, 0, 0), Vector3.new(10, 0, 0))
wireframe.Color3 = Color3.fromRGB(0, 255, 0) -- 次の行を緑に設定
wireframe:AddLine(Vector3.new(0, -10, 0), Vector3.new(0, 10, 0))
wireframe.Color3 = Color3.fromRGB(0, 0, 255) -- 次の行を青に設定
wireframe:AddLine(Vector3.new(0, 0, -10), Vector3.new(0, 0, 10))

APIリファレンス
プロパティ
Scale
並列読み取り
機能: Basic, UI
WireframeHandleAdornment.Scale:Vector3

Thickness
並列読み取り
機能: Basic, UI
WireframeHandleAdornment.Thickness:number

方法
AddLine
機能: Basic, UI
WireframeHandleAdornment:AddLine(
from:Vector3, to:Vector3
):()
パラメータ
from:Vector3
戻り値
()
コードサンプル
マルチカラーワイヤーフレーム
local wireframe = script.Parent
wireframe.Color3 = Color3.fromRGB(255, 0, 0) -- 次の行を赤に設定
wireframe:AddLine(Vector3.new(-10, 0, 0), Vector3.new(10, 0, 0))
wireframe.Color3 = Color3.fromRGB(0, 255, 0) -- 次の行を緑に設定
wireframe:AddLine(Vector3.new(0, -10, 0), Vector3.new(0, 10, 0))
wireframe.Color3 = Color3.fromRGB(0, 0, 255) -- 次の行を青に設定
wireframe:AddLine(Vector3.new(0, 0, -10), Vector3.new(0, 0, 10))

AddLines
機能: Basic, UI
WireframeHandleAdornment:AddLines(points:{any}):()
パラメータ
points:{any}
戻り値
()
コードサンプル
配列からのワイヤーフレームライン
local wireframe = script.Parent
local linesArray = {
Vector3.new(-10, 0, 0), -- 最初のラインの始点
Vector3.new(10, 0, 0), -- 最初のラインの終点
Vector3.new(0, -10, 0), -- 2番目のラインの始点
Vector3.new(0, 10, 0), -- 2番目のラインの終点
Vector3.new(0, 0, -10), -- 3番目のラインの始点
Vector3.new(0, 0, 10) -- 3番目のラインの終点
}
-- 装飾のためにパスを適用
wireframe:AddLines(linesArray)

AddPath
機能: Basic, UI
WireframeHandleAdornment:AddPath(
points:{any}, loop:boolean
):()
パラメータ
points:{any}
loop:boolean
戻り値
()
コードサンプル
基本パスワイヤーフレーム
local wireframe = script.Parent
-- 四つの点を正方形の配置で宣言する
local pathArray = {
Vector3.new(-10, 10, 0),
Vector3.new(10, 10, 0),
Vector3.new(10, -10, 0),
Vector3.new(-10, -10, 0)
}
-- パスを装飾に適用し、閉じる(開始点と終了点を接続する)
wireframe:AddPath(pathArray, true)

AddText
機能: Basic, UI
WireframeHandleAdornment:AddText(
point:Vector3, text:string, size:number
):()
パラメータ
point:Vector3
text:string
size:number
既定値: 12
戻り値
()

Clear
機能: Basic, UI
WireframeHandleAdornment:Clear():()
戻り値
()

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