Skip to content
Roblox API Reference

UIGradient

Applies a color and transparency gradient to the parent GuiObject.
Memory category
Instances
Own members
8
Inherited members
75
Subclasses
0
Siblings
11

Properties31

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byUIGradient8

Property categoryAppearance

  • UIGradient.Color: ColorSequence = 0 1 1 1 0 1 1 1 1 0
    Determines the color blended with the parent GuiObject along the length of the gradient.
    • Read capabilities: UI
  • UIGradient.Enabled: boolean = true
    Whether the gradient is enabled or not.
    • Read capabilities: UI
  • UIGradient.Offset: Vector2 = Vector2.zero
    Determines the scalar translation of the gradient from the center of the parent GuiObject.
    • Read capabilities: UI
  • UIGradient.Rotation: number = 0
    Determines the clockwise rotation in degrees of the gradient starting from left to right.
    • Read capabilities: UI
  • UIGradient.Scale: number = 1
    Multiplies the extent of the gradient, controlling how much of the color/transparency sequence is visible within the element.
    • Not browsable
    • Read capabilities: UI
  • Determines how the gradient repeats.
    • Not browsable
    • Read capabilities: UI
  • UIGradient.Transparency: NumberSequence = 0 0 0 1 0 0
    Determines how much the parent GuiObject can be seen through along the length of the gradient.
    • Read capabilities: UI
  • Determines the shape of the gradient as linear, radial, or conical.
    • Not browsable
    • Read capabilities: UI

Methods42

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39

Events10

Inherited fromObject1
Inherited fromInstance9