Class TextElement
- Namespace
- Stride.CommunityToolkit.Scripts.Utilities
- Assembly
- Stride.CommunityToolkit.dll
Represents a text element with optional color information.
public record TextElement : IEquatable<TextElement>
- Inheritance
-
TextElement
- Implements
Constructors
TextElement(string, Color?)
Represents a text element with optional color information.
public TextElement(string Text, Color? Color = null)
Parameters
Text
stringThe text content to be displayed.
Color
Color?The optional color for the text. If null, a default color will be used.
Properties
Color
The optional color for the text. If null, a default color will be used.
public Color? Color { get; init; }
Property Value
Text
The text content to be displayed.
public string Text { get; init; }