LedTextSettings
public struct LedTextSettingsShared bitmap and font-texture text layout settings, including pixel sizing, fit, alignment, wrapping, line spacing, character spacing, and rasterization.
Fields
Section titled “Fields”
RenderMode
Section titled “RenderMode”[Tooltip("Selects the internal bitmap renderer, TMP font renderer, or an optional external text backend.")]public LedTextRenderMode RenderModeReturns
LEDStudio.LedTextRenderMode
RasterizationMode
Section titled “RasterizationMode”[Tooltip("Controls smoothing for TMP font rendering. This does not apply to the internal bitmap renderer.")]public LedTextRasterizationMode RasterizationModeReturns
LEDStudio.LedTextRasterizationMode
SizingMode
Section titled “SizingMode”[Tooltip("Controls whether font-backed text uses a fixed size or fits within the source texture.")]public LedTextSizingMode SizingModeReturns
LEDStudio.LedTextSizingMode
TextSize
Section titled “TextSize”[Min(1)][Tooltip("Text height in source pixels for internal bitmap text and fixed-size font-backed text.")]public float TextSizeReturns
System.Single
MinTextSize
Section titled “MinTextSize”[Min(1)][Tooltip("Smallest text size allowed while fitting font-backed text.")]public float MinTextSizeReturns
System.Single
MaxTextSize
Section titled “MaxTextSize”[Min(1)][Tooltip("Largest text size allowed while fitting font-backed text.")]public float MaxTextSizeReturns
System.Single
LineSpacing
Section titled “LineSpacing”[Range(0.5, 2)][Tooltip("Multiplies the distance between font-backed text lines.")]public float LineSpacingReturns
System.Single
CharacterSpacing
Section titled “CharacterSpacing”[Range(-10, 20)][Tooltip("Adjusts horizontal spacing between characters. Internal bitmap text interprets the value as source pixels; negative values tighten or overlap glyphs.")]public float CharacterSpacingReturns
System.Single
Alignment
Section titled “Alignment”[Tooltip("Positions text within the source texture.")]public TextAnchor AlignmentReturns
UnityEngine.TextAnchor
WordWrap
Section titled “WordWrap”[Tooltip("Wraps font-backed text onto additional lines when it reaches the source width.")]public bool WordWrapReturns
System.Boolean
PixelPerfectFit
Section titled “PixelPerfectFit”[Tooltip("Restricts fitted font-backed text to whole-pixel size steps for crisper output.")]public bool PixelPerfectFitReturns
System.Boolean
Methods
Section titled “Methods”
Normalized()
Section titled “Normalized()”public LedTextSettings Normalized()Returns a copy with valid text-size, fit-range, line-spacing, and character-spacing values.
Returns
LEDStudio.LedTextSettings
Equals(LedTextSettings)
Section titled “Equals(LedTextSettings)”public bool Equals(LedTextSettings other)Parameters
| Name | Type |
|---|---|
other |
LEDStudio.LedTextSettings |
Returns
System.Boolean
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters
| Name | Type |
|---|---|
obj |
System.Object |
Returns
System.Boolean
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns
System.Int32
Operators
Section titled “Operators”
operator ==(LedTextSettings, LedTextSettings)
Section titled “operator ==(LedTextSettings, LedTextSettings)”public static bool operator ==(LedTextSettings a, LedTextSettings b)Determines whether two text configurations select the same modes and layout behavior, using Unity’s approximate comparison for numeric layout values.
Parameters
| Name | Type |
|---|---|
a |
LEDStudio.LedTextSettings |
b |
LEDStudio.LedTextSettings |
Returns
System.Boolean
operator !=(LedTextSettings, LedTextSettings)
Section titled “operator !=(LedTextSettings, LedTextSettings)”public static bool operator !=(LedTextSettings a, LedTextSettings b)Determines whether two text configurations differ in any mode, layout option, or numeric layout value.
Parameters
| Name | Type |
|---|---|
a |
LEDStudio.LedTextSettings |
b |
LEDStudio.LedTextSettings |
Returns
System.Boolean
Properties
Section titled “Properties”
Default
Section titled “Default”public static LedTextSettings Default { get; }Returns
LEDStudio.LedTextSettings