SUIText

Index

Properties Index

Property Name

bool SupportRichText get set

bool AlignByGeometry get set

int FontSize get set

float LineSpacing get set

float MinWidth get

float MinHeight get

bool Enabled get set

string Text get set

SColor Color get set

SGameObject GameObject get

Properties

SupportRichText

bool SupportRichText get set

Whether this Text will support rich text.

ResizeTextForBestFit

bool ResizeTextForBestFit get set

Should the text be allowed to auto resized.

ResizeTextMinSize

int ResizeTextMinSize get set

The minimum size the text is allowed to be.

ResizeTextMaxSize

int ResizeTextMaxSize get set

The maximum size the text is allowed to be.

AlignByGeometry

bool AlignByGeometry get set

Use the range of glyph geometry to perform horizontal alignment.

FontSize

int FontSize get set

The size that the Font should render at.

LineSpacing

float LineSpacing get set

How much space will be in-between lines of text. This is a multiplier. The line spacing value set will be multiplied by the font's internal line spacing. A value of 1 will produce normal line spacing.

PixelsPerUnit

float PixelsPerUnit get

Provides information about how fonts are scale to the screen.

For dynamic fonts, the value is equivalent to the scale factor of the canvas. For non-dynamic fonts, the value is calculated from the requested text size and the size from the font.

MinWidth

float MinWidth get

The minimum width this UIText may be allocated. (Used by the Layout system).

PreferredWidth

float PreferredWidth get

The preferred width this UIText should be allocated if there is sufficient space. (Used by the Layout system)

FlexibleWidth

float FlexibleWidth get

The extra relative width this UIText should be allocated if there is additional available space. (Used by the Layout system)

MinHeight

float MinHeight get

The minimum height this UIText may be allocated.(Used by the Layout system).

PreferredHeight

float PreferredHeight get

The preferred height this UIText should be allocated if there is sufficient space. (Used by the Layout system)

FlexibleHeight

float FlexibleHeight get

The extra relative height this UIText should be allocated if there is additional available space. (Used by the Layout system.)

LayoutPriority

int LayoutPriority get

The layout priority of this UIText component.(Used by the Layout system.)

Enabled

bool Enabled get set

Whether the UIText component is Enabled or not will decide if it is visually updating or not.

Text

string Text get set

The string value this Text displays.

Color

SColor Color get set

Base color of the Graphic.

GameObject

SGameObject GameObject get

Property Description

Last updated

Was this helpful?