Class UIText
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
gameObjectGameObjectspriteBatchSpriteBatchtextRendererTextRenderer
Properties
Color
public Color Color { get; set; }
Property Value
Depth
public float Depth { get; set; }
Property Value
Font
public FontAsset? Font { get; set; }
Property Value
FontSize
public float FontSize { get; set; }
Property Value
HorizontalAlignment
public UIHorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Text
public string Text { get; set; }
Property Value
VerticalAlignment
public UIVerticalAlignment VerticalAlignment { get; set; }
Property Value
Methods
Render()
public override void Render()
Start()
public override void Start()