TextButtonクラス

クラス日本語解説あり

ひとことで言うと

文字の付いた、押せるボタンのGUIの部品です。

公式の説明(英語):A 2D user interface element that displays interactive text.

クラスの関係

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

プロパティ(21)

名前と書き方説明
ContentText
TextButton.ContentText: string
A copy of TextButton.Text that contains exactly what is being rendered by the TextButton.
FontFace
TextButton.FontFace: Datatype.Font
Determines the font used to render text.
LineHeight
TextButton.LineHeight: float
Scales the spacing between lines of text in the TextButton.
MaxVisibleGraphemes
TextButton.MaxVisibleGraphemes: int
The maximum number of graphemes the TextButton can show.
OpenTypeFeatures
TextButton.OpenTypeFeatures: string
Applies OpenType font features, such as stylistic sets, to the text rendered by the TextButton.
OpenTypeFeaturesError
TextButton.OpenTypeFeaturesError: string
Read-only property that contains the error message, if any, produced while applying Class.TextButton.OpenTypeFeatures|OpenTypeFeatures.
RichText
TextButton.RichText: boolean
Determines whether the TextButton renders its text using rich text formatting.
Text
TextButton.Text: string
ボタンに表示する文字。Determines the string rendered by the TextButton.
TextBounds
TextButton.TextBounds: Vector2
Read-only property which reflects the absolute size of rendered text in offsets.
TextColor3
TextButton.TextColor3: Color3
Determines the color of rendered text.
TextDirection
TextButton.TextDirection: TextDirection
Direction in which the text is rendered.
TextFits
TextButton.TextFits: boolean
A boolean representation of whether the button's text fits within the size of it.
TextScaled
TextButton.TextScaled: boolean
Changes whether text is resized to fit within the TextButton.
TextSize
TextButton.TextSize: float
Determines the line height of text in offsets.
TextStrokeColor3
TextButton.TextStrokeColor3: Color3
Determines the color of the text stroke (outline).
TextStrokeTransparency
TextButton.TextStrokeTransparency: float
Determines the transparency of the text stroke (outline).
TextTransparency
TextButton.TextTransparency: float
Determines the transparency of rendered text.
TextTruncate
TextButton.TextTruncate: TextTruncate
Controls the truncation of the text displayed in the TextButton.
TextWrapped
TextButton.TextWrapped: boolean
Determines if text wraps to multiple lines within the TextButton element's space, truncating excess text.
TextXAlignment
TextButton.TextXAlignment: TextXAlignment
Determines the horizontal alignment of rendered text.
TextYAlignment
TextButton.TextYAlignment: TextYAlignment
Determines the vertical alignment of rendered text.

受け継いでいるメンバー

GuiButton から受け継いでいるもの(14)

AutoButtonColor・HoverHapticEffect・Modal・PressHapticEffect・Selected・Style・Activated・MouseButton1Click・MouseButton1Down・MouseButton1Up・MouseButton2Click・MouseButton2Down・MouseButton2Up・SecondaryActivated

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

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