배우기
엔진 클래스
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), -- 두 번째 선의 시작점
Vector3.new(0, 10, 0), -- 두 번째 선의 끝점
Vector3.new(0, 0, -10), -- 세 번째 선의 시작점
Vector3.new(0, 0, 10) -- 세 번째 선의 끝점
}
-- 장식에 경로 적용
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'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.