TextLabelクラス
ひとことで言うと
画面に文字を表示するGUIの部品です。
公式の説明(英語):A 2D user interface element that displays non-interactive text.
クラスの関係
受け継いでいるクラス:Object → Instance → GuiBase → GuiBase2d → GuiObject → GuiLabel → TextLabel
プロパティ(21)
| 名前と書き方 | 説明 |
|---|---|
ContentTextTextLabel.ContentText: string | A copy of TextLabel.Text that contains exactly what is being rendered by the TextLabel. |
FontFaceTextLabel.FontFace: Datatype.Font | Determines the font used to render text. |
LineHeightTextLabel.LineHeight: float | Scales the spacing between lines of text in the TextLabel. |
MaxVisibleGraphemesTextLabel.MaxVisibleGraphemes: int | The maximum number of graphemes the TextLabel can show. |
OpenTypeFeaturesTextLabel.OpenTypeFeatures: string | Applies OpenType typographic features to the text rendered by the TextLabel. |
OpenTypeFeaturesErrorTextLabel.OpenTypeFeaturesError: string | Read-only property that describes why the TextLabel.OpenTypeFeatures string could not be applied. |
RichTextTextLabel.RichText: boolean | Determines whether the TextLabel renders its text using rich text formatting. |
TextTextLabel.Text: string | 表示する文字。Determines the string rendered by the TextLabel. |
TextBoundsTextLabel.TextBounds: Vector2 | Read-only property which reflects the absolute size of rendered text in |
TextColor3TextLabel.TextColor3: Color3 | 文字の色。Determines the color of rendered text. |
TextDirectionTextLabel.TextDirection: TextDirection | Direction in which the text is rendered. |
TextFitsTextLabel.TextFits: boolean | A boolean representation of whether the label's text fits within the size of it. |
TextScaledTextLabel.TextScaled: boolean | Changes whether text is resized to fit within the TextLabel. |
TextSizeTextLabel.TextSize: float | 文字の大きさ。Determines the line height of text in offsets. |
TextStrokeColor3TextLabel.TextStrokeColor3: Color3 | Determines the color of the text stroke (outline). |
TextStrokeTransparencyTextLabel.TextStrokeTransparency: float | Determines the transparency of the text stroke (outline). |
TextTransparencyTextLabel.TextTransparency: float | Determines the transparency of rendered text. |
TextTruncateTextLabel.TextTruncate: TextTruncate | Controls the truncation of the text displayed in the TextLabel. |
TextWrappedTextLabel.TextWrapped: boolean | Determines if text wraps to multiple lines within the TextLabel |
TextXAlignmentTextLabel.TextXAlignment: TextXAlignment | Determines the horizontal alignment of rendered text. |
TextYAlignmentTextLabel.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)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(TextLabel)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。