Engine Class
WireframeHandleAdornment
Summary
Methods
Clear():() |
Inherited Members
9 inherited from HandleAdornment
1 inherited from PVAdornment
4 inherited from GuiBase3d
57 inherited from Instance
6 inherited from Object
Code Samples
Basic Path Wireframe
local wireframe = script.Parent
-- Declare four points in a square arrangement
local pathArray = {
Vector3.new(-10, 10, 0),
Vector3.new(10, 10, 0),
Vector3.new(10, -10, 0),
Vector3.new(-10, -10, 0)
}
-- Apply path to adornment and close it (connect starting and ending points)
wireframe:AddPath(pathArray, true)Multicolor Wireframe
local wireframe = script.Parent
wireframe.Color3 = Color3.fromRGB(255, 0, 0) -- Sets next line to red
wireframe:AddLine(Vector3.new(-10, 0, 0), Vector3.new(10, 0, 0))
wireframe.Color3 = Color3.fromRGB(0, 255, 0) -- Sets next line to green
wireframe:AddLine(Vector3.new(0, -10, 0), Vector3.new(0, 10, 0))
wireframe.Color3 = Color3.fromRGB(0, 0, 255) -- Sets next line to blue
wireframe:AddLine(Vector3.new(0, 0, -10), Vector3.new(0, 0, 10))API Reference
Properties
Methods
AddLine
Returns
()
Code Samples
Multicolor Wireframe
local wireframe = script.Parent
wireframe.Color3 = Color3.fromRGB(255, 0, 0) -- Sets next line to red
wireframe:AddLine(Vector3.new(-10, 0, 0), Vector3.new(10, 0, 0))
wireframe.Color3 = Color3.fromRGB(0, 255, 0) -- Sets next line to green
wireframe:AddLine(Vector3.new(0, -10, 0), Vector3.new(0, 10, 0))
wireframe.Color3 = Color3.fromRGB(0, 0, 255) -- Sets next line to blue
wireframe:AddLine(Vector3.new(0, 0, -10), Vector3.new(0, 0, 10))AddLines
Parameters
Returns
()
Code Samples
Wireframe Lines From Array
local wireframe = script.Parent
local linesArray = {
Vector3.new(-10, 0, 0), -- Starting point of first line
Vector3.new(10, 0, 0), -- Ending point of first line
Vector3.new(0, -10, 0), -- Starting point of second line
Vector3.new(0, 10, 0), -- Ending point of second line
Vector3.new(0, 0, -10), -- Starting point of third line
Vector3.new(0, 0, 10) -- Ending point of third line
}
-- Apply path to adornment
wireframe:AddLines(linesArray)AddPath
Returns
()
Code Samples
Basic Path Wireframe
local wireframe = script.Parent
-- Declare four points in a square arrangement
local pathArray = {
Vector3.new(-10, 10, 0),
Vector3.new(10, 10, 0),
Vector3.new(10, -10, 0),
Vector3.new(-10, -10, 0)
}
-- Apply path to adornment and close it (connect starting and ending points)
wireframe:AddPath(pathArray, true)AddText
Clear
WireframeHandleAdornment:Clear():()
Returns
()