UIPageLayoutクラス

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

ひとことで言うと

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

公式の説明(英語):Positions sibling UI elements as full-size pages in a single row or column that users can scroll or animate through one page at a time.

クラスの関係

受け継いでいるクラス:Object → Instance → UIBase → UIComponent → UILayout → UIGridStyleLayout → UIPageLayout

プロパティ(10)

名前と書き方説明
Animated
UIPageLayout.Animated: boolean
Whether or not to animate transitions between pages.
Circular
UIPageLayout.Circular: boolean
Whether or not the page layout wraps around at the ends.
CurrentPage
UIPageLayout.CurrentPage: GuiObject
The page that is either currently being displayed or is the target of the current animation.
EasingDirection
UIPageLayout.EasingDirection: EasingDirection
The easing direction to use when performing an animation.
EasingStyle
UIPageLayout.EasingStyle: EasingStyle
The easing style to use when performing an animation.
GamepadInputEnabled
UIPageLayout.GamepadInputEnabled: boolean
Controls the overrides of NextSelection{Up, Down, Left, Right}. Defaults to true.
Padding
UIPageLayout.Padding: UDim
Determines the amount that pages are separated from each other by.
ScrollWheelInputEnabled
UIPageLayout.ScrollWheelInputEnabled: boolean
Controls the use of scroll wheel, in case that it is intended for something else. Defaults to true.
TouchInputEnabled
UIPageLayout.TouchInputEnabled: boolean
Controls touch scrolling, in case this is a non-interactive layout. Defaults to true.
TweenTime
UIPageLayout.TweenTime: float
The length of the animation.

メソッド(4)

名前と書き方説明
JumpTo
UIPageLayout:JumpTo(page: Instance): ()
If the page is in the UIPageLayout, then it sets UIPageLayout.CurrentPage to it and animates to it. If the circular layout is enabled, it will take the shortest path to this page.
JumpToIndex
UIPageLayout:JumpToIndex(index: int): ()
If the index is >= 0 and less than the size of the layout, this method acts like Class.UIPageLayout:JumpTo(). Out-of-bounds indices are wrapped modulo the page count to determine the target page.
Next
UIPageLayout:Next(): ()
Sets UIPageLayout.CurrentPage to the page after the current page and animates to it, or does nothing if there isn't a next page.
Previous
UIPageLayout:Previous(): ()
Sets UIPageLayout.CurrentPage to the page before the current page and animates to it, or does nothing if there isn't a previous page.

イベント(3)

名前と書き方説明
PageEnter
UIPageLayout.PageEnter(page: Instance)
Fires when a page comes into view, and is going to be rendered.
PageLeave
UIPageLayout.PageLeave(page: Instance)
Fires when a page leaves view, and will not be rendered.
Stopped
UIPageLayout.Stopped(currentPage: Instance)
Fires when an animation to UIPageLayout.CurrentPage is completed without being canceled, and the view stops scrolling.

受け継いでいるメンバー

UIGridStyleLayout から受け継いでいるもの(5)

AbsoluteContentSize・FillDirection・HorizontalAlignment・SortOrder・VerticalAlignment

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(UIPageLayout)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

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