TextLabelクラス

クラス日本語解説あり

ひとことで言うと

画面に文字を表示するGUIの部品です。

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

クラスの関係

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

プロパティ(21)

名前と書き方説明
ContentText
TextLabel.ContentText: string
A copy of TextLabel.Text that contains exactly what is being rendered by the TextLabel.
FontFace
TextLabel.FontFace: Datatype.Font
Determines the font used to render text.
LineHeight
TextLabel.LineHeight: float
Scales the spacing between lines of text in the TextLabel.
MaxVisibleGraphemes
TextLabel.MaxVisibleGraphemes: int
The maximum number of graphemes the TextLabel can show.
OpenTypeFeatures
TextLabel.OpenTypeFeatures: string
Applies OpenType typographic features to the text rendered by the TextLabel.
OpenTypeFeaturesError
TextLabel.OpenTypeFeaturesError: string
Read-only property that describes why the TextLabel.OpenTypeFeatures string could not be applied.
RichText
TextLabel.RichText: boolean
Determines whether the TextLabel renders its text using rich text formatting.
Text
TextLabel.Text: string
表示する文字。Determines the string rendered by the TextLabel.
TextBounds
TextLabel.TextBounds: Vector2
Read-only property which reflects the absolute size of rendered text in
TextColor3
TextLabel.TextColor3: Color3
文字の色。Determines the color of rendered text.
TextDirection
TextLabel.TextDirection: TextDirection
Direction in which the text is rendered.
TextFits
TextLabel.TextFits: boolean
A boolean representation of whether the label's text fits within the size of it.
TextScaled
TextLabel.TextScaled: boolean
Changes whether text is resized to fit within the TextLabel.
TextSize
TextLabel.TextSize: float
文字の大きさ。Determines the line height of text in offsets.
TextStrokeColor3
TextLabel.TextStrokeColor3: Color3
Determines the color of the text stroke (outline).
TextStrokeTransparency
TextLabel.TextStrokeTransparency: float
Determines the transparency of the text stroke (outline).
TextTransparency
TextLabel.TextTransparency: float
Determines the transparency of rendered text.
TextTruncate
TextLabel.TextTruncate: TextTruncate
Controls the truncation of the text displayed in the TextLabel.
TextWrapped
TextLabel.TextWrapped: boolean
Determines if text wraps to multiple lines within the TextLabel
TextXAlignment
TextLabel.TextXAlignment: TextXAlignment
Determines the horizontal alignment of rendered text.
TextYAlignment
TextLabel.TextYAlignment: TextYAlignment
Determines the vertical alignment of rendered text.

受け継いでいるメンバー

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

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