Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
ScrollBarInset
This enum is used with ScrollingFrame.HorizontalScrollBarInset and ScrollingFrame.VerticalScrollBarInset to indicate whether the canvas should be inset by ScrollBarThickness for the respective scroll bar.
Items
| Name | Value | Description |
|---|---|---|
| None | 0 | The canvas will never be inset for the respective scroll bar. |
| ScrollBar | 1 | The canvas will only be inset if the respective scroll bar is showing. |
| Always | 2 | The canvas will always be inset for the respective scroll bar, regardless of whether that scroll bar is showing. |
None
The canvas will never be inset for the respective scroll bar.
| Field | Value |
|---|---|
| value | 0 |
ScrollBar
The canvas will only be inset if the respective scroll bar is showing.
| Field | Value |
|---|---|
| value | 1 |
Always
The canvas will always be inset for the respective scroll bar, regardless of whether that scroll bar is showing.
| Field | Value |
|---|---|
| value | 2 |