HText

Class
A wrapper widget around Label that allows for easy configuration of the textual content.

Fields

doubleClickSelectsWords: bool
emojiFallbackSupport: bool
enableRichText: bool
languageDirection: LanguageDirection
parseEscapeSequences: bool
selectable: bool
style: TextStyle
text: string
tripleClickSelectsLine: bool

Constructors

HText(text: string, enableRichText: bool, emojiFallbackSupport: bool, parseEscapeSequences: bool, selectable: bool, doubleClickSelectsWords: bool, tripleClickSelectsLine: bool, languageDirection: LanguageDirection, style: TextStyle, key: Key, constants: object[], modifiers: IReadOnlyCollection<Modifier>)
Creates a wrapper widget around Label that allows for easy configuration of the textual content.

Parameters

text:string - The textual content to display.
enableRichText:bool - Whether the text supports unity's rich text formatting.
emojiFallbackSupport:bool - Whether to use emoji fallbacks for unsupported characters.
parseEscapeSequences:bool - Whether to parse escape sequences like \nin the text.
selectable:bool - Whether the text is selectable by the user.
doubleClickSelectsWords:bool - Whether double-clicking selects words.
tripleClickSelectsLine:bool - Whether triple-clicking selects entire lines.
languageDirection:LanguageDirection - The language direction for the text.
style:TextStyle - Style overrides to apply to the text.
key:Key - Passed on to Widget.key.
constants:object[] - Passed on to Widget.constants.
modifiers:IReadOnlyCollection<Modifier> - Passed on to Widget.modifiers.

Methods

Apply(previous: HText, element: Label): void
Create(): Label
DebugFillProperties(properties: DiagnosticPropertiesBuilder): void

Inherited Members

Extension Methods

ToDiagnosticsNodeSafeIfClipConstDisplayExpandFillFlexibleMarginOpacityPaddingPositionedShrinkSizeStretchTightStretchTightVisibilityWithModifierBodyCaptionDisplayHeadingToBuildableToFactoryDescribeIdentityShortHashToStringNullable

On this page