Beam
Beam : Instance
Overview
Description
A Beam
is an object that creates a visually dynamic connection between two points in a 3D space. It is often used for effects such as laser beams, lightning, or glowing trails. Beams rely on attachments to determine their position and orientation in the 3D environment.
Properties
Color
ColorSequence
The color of the beam is determined by a ColorSequence
that defines a gradient of colors along the length of the beam.
Code Samples
Enabled
bool
Determines whether the beam is visible (true
) or not (false
).
Code Samples
ColorTexture
string
The texture to apply to the beam's color channel. This should be a valid asset ID or URL.
Code Samples
ColorTextureLength
number
Defines the length of the applied color texture. A smaller value repeats the texture more frequently.
Code Samples
ColorTextureSpeed
number
Specifies the speed at which the color texture scrolls along the beam.
Code Samples
AlphaTexture
string
The texture applied to define the beam's transparency. This should also be a valid asset ID or URL.
Code Samples
AlphaTextureLength
number
Defines the length of the applied alpha texture. Adjusts the scaling for transparency effects.
Code Samples
AlphaTextureSpeed
number
Controls the speed at which the alpha texture scrolls along the beam.
Code Samples
Transparency
NumberSequence
Defines the transparency of the beam at different points along its length using a NumberSequence
.
Code Samples
Attachment0
Attachment
The starting attachment of the beam. This determines one end of the beam's position.
Code Samples
Attachment1
Attachment
The ending attachment of the beam. This determines the other end of the beam's position.
Code Samples
StartCurve
Vector3
Defines the curve at the start of the beam to create a bend or arc from the first attachment.
Code Samples
EndCurve
Vector3
Defines the curve at the end of the beam to create a bend or arc near the second attachment.
Code Samples
Segments
number
The number of segments used to render the beam. More segments create a smoother appearance, but require more performance.
Code Samples
Width0
number
Width of the beam at the start, relative to the first attachment.
Code Samples
Width1
number
Width of the beam at the end, relative to the second attachment.
Code Samples
FacingVector
Vector3
Defines the vector that represents the direction the beam faces.
Code Samples
Methods
Events
Last updated