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)
| 名前と書き方 | 説明 |
|---|---|
AbsoluteCanvasSizeScrollingFrame.AbsoluteCanvasSize: Vector2 | The size of the area that is scrollable, in offsets. |
AbsoluteWindowSizeScrollingFrame.AbsoluteWindowSize: Vector2 | The size of the frame, in offsets, without the scroll bars. |
AutomaticCanvasSizeScrollingFrame.AutomaticCanvasSize: AutomaticSize | Determines whether ScrollingFrame.CanvasSize is resized based on child content. |
BottomImageScrollingFrame.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). |
BottomImageContentScrollingFrame.BottomImageContent: Content | The Content-typed equivalent of Class.ScrollingFrame.BottomImage|BottomImage. |
CanvasPositionScrollingFrame.CanvasPosition: Vector2 | Reflects the **current** positional offset of the canvas within the frame, in pixels, and sets the position of scroll bars accordingly. |
CanvasSizeScrollingFrame.CanvasSize: UDim2 | Determines the size of the scrollable area. |
ElasticBehaviorScrollingFrame.ElasticBehavior: ElasticBehavior | Determines if and when elastic scrolling is allowed on touch‑enabled devices. |
HorizontalScrollBarInsetScrollingFrame.HorizontalScrollBarInset: ScrollBarInset | Indicates whether Class.ScrollingFrame.CanvasSize|CanvasSize is inset by Class.ScrollingFrame.ScrollBarThickness|ScrollBarThickness on the horizontal axis. |
MidImageScrollingFrame.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). |
MidImageContentScrollingFrame.MidImageContent: Content | The Content-typed equivalent of Class.ScrollingFrame.MidImage|MidImage. |
ScrollBarImageColor3ScrollingFrame.ScrollBarImageColor3: Color3 | Determines how the rendered scroll bar images are colorized. |
ScrollBarImageTransparencyScrollingFrame.ScrollBarImageTransparency: float | Determines the opacity of the scroll bar images. |
ScrollBarThicknessScrollingFrame.ScrollBarThickness: int | Thickness of the scroll bar in pixels; applies to both horizontal and vertical scroll bars. |
ScrollingDirectionScrollingFrame.ScrollingDirection: ScrollingDirection | Determines the direction(s) in which scrolling is allowed. |
ScrollingEnabledScrollingFrame.ScrollingEnabled: boolean | Determines whether scrolling is allowed on the frame. |
TopImageScrollingFrame.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). |
TopImageContentScrollingFrame.TopImageContent: Content | The Content-typed equivalent of Class.ScrollingFrame.TopImage|TopImage. |
VerticalScrollBarInsetScrollingFrame.VerticalScrollBarInset: ScrollBarInset | Indicates whether Class.ScrollingFrame.CanvasSize|CanvasSize is inset by Class.ScrollingFrame.ScrollBarThickness|ScrollBarThickness on the vertical axis. |
VerticalScrollBarPositionScrollingFrame.VerticalScrollBarPosition: VerticalScrollBarPosition | Indicates whether the vertical scroll bar is positioned to the left or right of the canvas. |
メソッド(2)
| 名前と書き方 | 説明 |
|---|---|
GetScrollVelocityScrollingFrame:GetScrollVelocity(): Vector2 | Returns a Vector2 representing the current inertial scroll velocity after the user stops their input. |
ResetScrollVelocityScrollingFrame: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)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(ScrollingFrame)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。