ScrollingFrameクラス

クラス日本語解説は準備中

ひとことで言うと

ScrollingFrameは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):ScrollingFrame is a special Frame type with built-in scrolling interactivity and different ways to customize how the scrolling works.

クラスの関係

受け継いでいるクラス:Object → Instance → GuiBase → GuiBase2d → GuiObject → ScrollingFrame

プロパティ(20)

名前と書き方説明
AbsoluteCanvasSize
ScrollingFrame.AbsoluteCanvasSize: Vector2
The size of the area that is scrollable, in offsets.
AbsoluteWindowSize
ScrollingFrame.AbsoluteWindowSize: Vector2
The size of the frame, in offsets, without the scroll bars.
AutomaticCanvasSize
ScrollingFrame.AutomaticCanvasSize: AutomaticSize
Determines whether ScrollingFrame.CanvasSize is resized based on child content.
BottomImage
ScrollingFrame.BottomImage: ContentId
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).
BottomImageContent
ScrollingFrame.BottomImageContent: Content
The Content-typed equivalent of Class.ScrollingFrame.BottomImage|BottomImage.
CanvasPosition
ScrollingFrame.CanvasPosition: Vector2
Reflects the **current** positional offset of the canvas within the frame, in pixels, and sets the position of scroll bars accordingly.
CanvasSize
ScrollingFrame.CanvasSize: UDim2
Determines the size of the scrollable area.
ElasticBehavior
ScrollingFrame.ElasticBehavior: ElasticBehavior
Determines if and when elastic scrolling is allowed on touch‑enabled devices.
HorizontalScrollBarInset
ScrollingFrame.HorizontalScrollBarInset: ScrollBarInset
Indicates whether Class.ScrollingFrame.CanvasSize|CanvasSize is inset by Class.ScrollingFrame.ScrollBarThickness|ScrollBarThickness on the horizontal axis.
MidImage
ScrollingFrame.MidImage: ContentId
Image which spans the area between Class.ScrollingFrame.TopImage|TopImage and Class.ScrollingFrame.BottomImage|BottomImage (rotated 90° counterclockwise for a horizontal scroll bar).
MidImageContent
ScrollingFrame.MidImageContent: Content
The Content-typed equivalent of Class.ScrollingFrame.MidImage|MidImage.
ScrollBarImageColor3
ScrollingFrame.ScrollBarImageColor3: Color3
Determines how the rendered scroll bar images are colorized.
ScrollBarImageTransparency
ScrollingFrame.ScrollBarImageTransparency: float
Determines the opacity of the scroll bar images.
ScrollBarThickness
ScrollingFrame.ScrollBarThickness: int
Thickness of the scroll bar in pixels; applies to both horizontal and vertical scroll bars.
ScrollingDirection
ScrollingFrame.ScrollingDirection: ScrollingDirection
Determines the direction(s) in which scrolling is allowed.
ScrollingEnabled
ScrollingFrame.ScrollingEnabled: boolean
Determines whether scrolling is allowed on the frame.
TopImage
ScrollingFrame.TopImage: ContentId
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).
TopImageContent
ScrollingFrame.TopImageContent: Content
The Content-typed equivalent of Class.ScrollingFrame.TopImage|TopImage.
VerticalScrollBarInset
ScrollingFrame.VerticalScrollBarInset: ScrollBarInset
Indicates whether Class.ScrollingFrame.CanvasSize|CanvasSize is inset by Class.ScrollingFrame.ScrollBarThickness|ScrollBarThickness on the vertical axis.
VerticalScrollBarPosition
ScrollingFrame.VerticalScrollBarPosition: VerticalScrollBarPosition
Indicates whether the vertical scroll bar is positioned to the left or right of the canvas.

メソッド(2)

名前と書き方説明
GetScrollVelocity
ScrollingFrame:GetScrollVelocity(): Vector2
Returns a Vector2 representing the current inertial scroll velocity after the user stops their input.
ResetScrollVelocity
ScrollingFrame:ResetScrollVelocity(): ()
Resets the inertial scroll velocity of the ScrollingFrame to 0 on both axes.

受け継いでいるメンバー

GuiObject から受け継いでいるもの(42)

Active・AnchorPoint・AutomaticSize・BackgroundColor3・BackgroundTransparency・BorderColor3・BorderMode・BorderSizePixel・ClipsDescendants・GuiState・InputSink・Interactable・LayoutOrder・NextSelectionDown・NextSelectionLeft・NextSelectionRight・NextSelectionUp・Position・Rotation・Selectable・SelectionImageObject・SelectionOrder・Size・SizeConstraint・Visible・ZIndex・InputBegan・InputChanged・InputEnded・MouseEnter・MouseLeave・MouseMoved・MouseWheelBackward・MouseWheelForward・SelectionGained・SelectionLost・TouchLongPress・TouchPan・TouchPinch・TouchRotate・TouchSwipe・TouchTap

GuiBase2d から受け継いでいるもの(11)

AbsolutePosition・AbsoluteRotation・AbsoluteSize・AutoLocalize・RootLocalizationTable・SelectionBehaviorDown・SelectionBehaviorLeft・SelectionBehaviorRight・SelectionBehaviorUp・SelectionGroup・SelectionChanged

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(ScrollingFrame)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む