Skip to main content

UIField

Abstract

Inherits from Instance

UIField is the base class of all UI classes.


Summary

Properties

Events


Properties

PivotPoint

UIField.PivotPoint: Vector2 = Vector2.New

Parameters:

ParameterTypeDefaultDescription
0.5any-
0.5any-

The pivot point of the UI element.


PositionOffset

UIField.PositionOffset: Vector2 = Vector2.New

Parameters:

ParameterTypeDefaultDescription
100any-
100any-

The offset of the UI element in pixels.


PositionRelative

UIField.PositionRelative: Vector2 = Vector2.New

Parameters:

ParameterTypeDefaultDescription
0.5any-
0.5any-

The position of the UI element relative to its parent.


Rotation

UIField.Rotation: float

The rotation of the UI element.


SizeOffset

UIField.SizeOffset: Vector2 = Vector2.New

Parameters:

ParameterTypeDefaultDescription
100any-
100any-

The size of the UI element in pixels.


SizeRelative

UIField.SizeRelative: Vector2 = Vector2.New

Parameters:

ParameterTypeDefaultDescription
1any-
1any-

The size of the UI element relative to its parent.


Visible

UIField.Visible: bool

Determines whether the UI element is visible or not.


ClipDescendants

UIField.ClipDescendants: bool

Determines whether the UI element clips its descendants.


Events

MouseDown

UIField.MouseDown()

Fires when the mouse is clicked

Example

label.MouseDown:Connect(function()
label.Text = "Mouse Down"
end)

MouseUp

UIField.MouseUp()

Fires when the mouse is released

Example

label.MouseUp:Connect(function()
label.Text = "Mouse Up"
end)

Properties