ScrollingFrame

Show Deprecated

ScrollingFrame is a special Frame type with built-in scrolling interactivity and different ways to customize how the scrolling works.

Example ScrollingFrame on the screen containing a tabbed category bar and a list of magical items for the player to consider purchasing.

Summary

Properties

Properties inherited from GuiObjectProperties inherited from GuiBase2d

Methods

Methods inherited from GuiObject

Events

Events inherited from GuiObjectEvents inherited from GuiBase2d

Properties

AbsoluteCanvasSize

Read Only
Not Replicated

The size of the area that is scrollable, in offsets. This property is set to the maximum of the CanvasSize property and the size of the children if AutomaticCanvasSize is set to something other than Enum.AutomaticSize.None.

AbsoluteWindowSize

Read Only
Not Replicated

The size of the frame, in offsets, without the scroll bars.

AutomaticCanvasSize

Read Parallel

This property is used to automatically size parent UI objects based on the size of its descendants. You can use this property to dynamically add text and other content to a ScrollingFrame at edit or run time and the size will adjust to fit that content.

When this property is set to an Enum.AutomaticSize value other than None, AbsoluteCanvasSize may resize depending on its child content.

BottomImage

ContentId
Read Parallel

Image that displays on the bottom of a vertical scroll bar, or the right of a horizontal scroll bar (rotated 90° counterclockwise for a horizontal scroll bar).

Diagram showing the three image asset elements which construct a scrolling frame's scroll bar.

CanvasPosition

Read Parallel

Reflects the current positional offset of the canvas within the frame, in pixels, and sets the position of scroll bars accordingly. Note that this property doesn't do anything if scroll bars aren't visible.

CanvasSize

Read Parallel

Determines the size of the scrollable area. For an adaptive alternative based on the overall size of children within the ScrollingFrame, consider using AutomaticCanvasSize.

ElasticBehavior

Read Parallel

This property determines if and when elastic scrolling is allowed on touch‑enabled devices. Defaults to WhenScrollable.

HorizontalScrollBarInset

Read Parallel

Indicates whether CanvasSize is inset by ScrollBarThickness on the horizontal axis.

MidImage

ContentId
Read Parallel

Image which spans the area between TopImage and BottomImage (rotated 90° counterclockwise for a horizontal scroll bar). This image automatically scales to fill the space between the cap segments.

Diagram showing the three image asset elements which construct a scrolling frame's scroll bar.

ScrollBarImageColor3

Read Parallel

Determines how the scroll bar images (TopImage, MidImage, BottomImage) are colorized. When set to white, no colorization occurs. This property is useful for reusing image assets; if the source images are completely white with transparency, you can set the color of the entire scroll bar at once.

ScrollBarImageTransparency

Read Parallel

Determines the opacity of the scroll bar images (TopImage, MidImage, BottomImage). A value of 0 is completely opaque and a value of 1 is completely transparent (invisible).

ScrollBarThickness

Read Parallel

Thickness of the scroll bar in pixels; applies to both horizontal and vertical scroll bars. If set to 0, no scroll bars are rendered.

ScrollingDirection

Read Parallel

This property determines the direction(s) in which scrolling is allowed. If scrolling is disallowed in a direction, the associated scroll bar will not appear. Defaults to Enum.ScrollingDirection.XY.

ScrollingEnabled

Read Parallel

Determines whether scrolling is allowed on the frame. If false, no scroll bars will be rendered.

TopImage

ContentId
Read Parallel

Image which displays on the top of a vertical scroll bar, or the left of a horizontal scroll bar (rotated 90° counterclockwise for a horizontal scroll bar).

Diagram showing the three image asset elements which construct a scrolling frame's scroll bar.

VerticalScrollBarInset

Read Parallel

Indicates whether CanvasSize is inset by ScrollBarThickness on the vertical axis.

VerticalScrollBarPosition

Read Parallel

Indicates whether the vertical scroll bar is positioned to the left or right of the canvas. Defaults to Enum.VerticalScrollBarPosition.Right.

Methods

Events