Roblox UtilitiesDevlHub Roblox Documentation

Data type

Path2DControlPoint

Stores the info for a single control point used with the Path2D instance.

The Path2DControlPoint data type represents a single control point used with the Path2D instance.

Constructors 3#

newReturns an empty Path2DControlPoint.
newReturns a Path2DControlPoint with only the position set.
newReturns a Path2DControlPoint with the position, left tangent, and right tangent set.

new()#

Returns an empty Path2DControlPoint.

new(Position: UDim2)#

Returns a Path2DControlPoint with the position set. This constructor will set the tangents to default UDim2 values.

NameTypeDefaultDescription
PositionUDim2The UDim2 position of the control point.

new(Position: UDim2, Left Tangent: UDim2, Right Tangent: UDim2)#

Returns a Path2DControlPoint with the position, left tangent, and right tangent set.

NameTypeDefaultDescription
PositionUDim2The UDim2 position of the control point.
Left TangentUDim2The UDim2 left tangent of the control point.
Right TangentUDim2The UDim2 right tangent of the control point.

Properties 3#

PositionUDim2The position of the Path2DControlPoint.
LeftTangentUDim2The left tangent of the Path2DControlPoint.
RightTangentUDim2The right tangent of the Path2DControlPoint.

Position: UDim2#

The position of the Path2DControlPoint relative to the path's container.

LeftTangent: UDim2#

The left tangent of the Path2DControlPoint.

RightTangent: UDim2#

The right tangent of the Path2DControlPoint.