Text

class Text

A text label. See Panel.AddText.

RectTransform RectTransform { get; }

The rect transform for the text.

Game Scenes:

All

Boolean Visible { get; set; }

Whether the UI object is visible.

Game Scenes:

All

String Content { get; set; }

The text string

Game Scenes:

All

String Font { get; set; }

Name of the font

Game Scenes:

All

IList<String> AvailableFonts { get; }

A list of all available fonts.

Game Scenes:

All

Int32 Size { get; set; }

Font size.

Game Scenes:

All

FontStyle Style { get; set; }

Font style.

Game Scenes:

All

Tuple<Double, Double, Double> Color { get; set; }

Set the color

Game Scenes:

All

TextAnchor Alignment { get; set; }

Alignment.

Game Scenes:

All

Single LineSpacing { get; set; }

Line spacing.

Game Scenes:

All

void Remove ()

Remove the UI object.

Game Scenes:

All

enum FontStyle

Font style.

Normal

Normal.

Bold

Bold.

Italic

Italic.

BoldAndItalic

Bold and italic.

enum TextAlignment

Text alignment.

Left

Left aligned.

Right

Right aligned.

Center

Center aligned.

enum TextAnchor

Text alignment.

LowerCenter

Lower center.

LowerLeft

Lower left.

LowerRight

Lower right.

MiddleCenter

Middle center.

MiddleLeft

Middle left.

MiddleRight

Middle right.

UpperCenter

Upper center.

UpperLeft

Upper left.

UpperRight

Upper right.