Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TextGenerationSettings

A struct that stores the settings for the Advanced Text Generator.
Read time 1 minuteLast updated 9 days ago

Definition

public struct TextGenerationSettings

Fields

Value

Description

autoSizeAutomatic font sizing, which shrinks or grows the font size so the text fits the extents.
colorThe base color for the text generation.
extentsThe layout area, in pixels. Text is aligned within it and lines wrap at a positive horizontal extent when _wrapMode allows it. A zero or negative axis is unconstrained.
fontFont to use for generation.
fontSizeFont size, in pixels.
fontStyleFont style.
fontWeightFont weight.
horizontalAlignmentHorizontal alignment of the text within the extents.
languageDirectionThe base direction paragraphs are laid out in.
richTextAllow rich text markup in generation.
textThe text to generate.
verticalAlignmentVertical alignment of the text within the extents. Takes effect when the vertical extent is positive.
whitespaceCollapseHow sequences of white space are handled.
wrapModeWhether lines wrap at the horizontal extent.

Static Properties

Property

Description

DefaultA set of settings initialized to sensible defaults.