Table of Contents

Class UIText

Namespace
Axolotl2D.UI
Assembly
Axolotl2D.dll

Draws aligned text inside a UITransform.

public sealed class UIText : Component, IDisposable
Inheritance
UIText
Implements
Inherited Members

Constructors

UIText(GameObject, SpriteBatch, TextRenderer)

Draws aligned text inside a UITransform.

public UIText(GameObject gameObject, SpriteBatch spriteBatch, TextRenderer textRenderer)

Parameters

gameObject GameObject
spriteBatch SpriteBatch
textRenderer TextRenderer

Properties

Color

public Color Color { get; set; }

Property Value

Color

Depth

public float Depth { get; set; }

Property Value

float

Font

public FontAsset? Font { get; set; }

Property Value

FontAsset

FontSize

public float FontSize { get; set; }

Property Value

float

HorizontalAlignment

public UIHorizontalAlignment HorizontalAlignment { get; set; }

Property Value

UIHorizontalAlignment

Text

public string Text { get; set; }

Property Value

string

VerticalAlignment

public UIVerticalAlignment VerticalAlignment { get; set; }

Property Value

UIVerticalAlignment

Methods

Render()

public override void Render()

Start()

public override void Start()