C# Class UnityEngine.TextGenerationSettings

ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
alignByGeometry bool
color Color
font Font
fontSize int
fontStyle FontStyle
generateOutOfBounds bool
generationExtents Vector2
horizontalOverflow HorizontalWrapMode
lineSpacing float
pivot Vector2
resizeTextForBestFit bool
resizeTextMaxSize int
resizeTextMinSize int
richText bool
scaleFactor float
textAnchor TextAnchor
updateBounds bool
verticalOverflow VerticalWrapMode

Public Methods

Method Description
Equals ( TextGenerationSettings other ) : bool

Private Methods

Method Description
CompareColors ( Color left, Color right ) : bool
CompareVector2 ( Vector2 left, Vector2 right ) : bool

Method Details

Equals() public method

public Equals ( TextGenerationSettings other ) : bool
other TextGenerationSettings
return bool

Property Details

alignByGeometry public_oe property

Use the extents of glyph geometry to perform horizontal alignment rather than glyph metrics.

public bool alignByGeometry
return bool

color public_oe property

The base color for the text generation.

public Color color
return Color

font public_oe property

Font to use for generation.

public Font,UnityEngine font
return Font

fontSize public_oe property

Font size.

public int fontSize
return int

fontStyle public_oe property

Font style.

public FontStyle fontStyle
return FontStyle

generateOutOfBounds public_oe property

Continue to generate characters even if the text runs out of bounds.

public bool generateOutOfBounds
return bool

generationExtents public_oe property

Extents that the generator will attempt to fit the text in.

public Vector2 generationExtents
return Vector2

horizontalOverflow public_oe property

What happens to text when it reaches the horizontal generation bounds.

public HorizontalWrapMode horizontalOverflow
return HorizontalWrapMode

lineSpacing public_oe property

The line spacing multiplier.

public float lineSpacing
return float

pivot public_oe property

Generated vertices are offset by the pivot.

public Vector2 pivot
return Vector2

resizeTextForBestFit public_oe property

Should the text be resized to fit the configured bounds?

public bool resizeTextForBestFit
return bool

resizeTextMaxSize public_oe property

Maximum size for resized text.

public int resizeTextMaxSize
return int

resizeTextMinSize public_oe property

Minimum size for resized text.

public int resizeTextMinSize
return int

richText public_oe property

Allow rich text markup in generation.

public bool richText
return bool

scaleFactor public_oe property

A scale factor for the text. This is useful if the Text is on a Canvas and the canvas is scaled.

public float scaleFactor
return float

textAnchor public_oe property

How is the generated text anchored.

public TextAnchor textAnchor
return TextAnchor

updateBounds public_oe property

Should the text generator update the bounds from the generated text.

public bool updateBounds
return bool

verticalOverflow public_oe property

What happens to text when it reaches the bottom generation bounds.

public VerticalWrapMode verticalOverflow
return VerticalWrapMode