ITextStyledSource
public interface ITextStyledSource : ILedSourceExtended source interface for text-based sources that share common
appearance properties (colours, text style, scrolling). Implemented by
LEDStudio.TextSource, LEDStudio.TimerSource and
LEDStudio.ScoreSource.
Methods
Section titled “Methods”
SetColor(Color)
Section titled “SetColor(Color)”void SetColor(Color textColor)Sets the text foreground color and marks the source dirty.
Parameters
| Name | Type |
|---|---|
textColor |
UnityEngine.Color |
SetBackgroundColor(Color)
Section titled “SetBackgroundColor(Color)”void SetBackgroundColor(Color backgroundColor)Sets the source background color and marks the source dirty.
Parameters
| Name | Type |
|---|---|
backgroundColor |
UnityEngine.Color |
SetTextSettings(LedTextSettings, TMP_FontAsset)
Section titled “SetTextSettings(LedTextSettings, TMP_FontAsset)”void SetTextSettings(LedTextSettings settings, TMP_FontAsset fontAsset)Applies shared LED text layout settings and an optional TextMeshPro font.
Parameters
| Name | Type |
|---|---|
settings |
LEDStudio.LedTextSettings |
fontAsset |
TMPro.TMP_FontAsset |
Properties
Section titled “Properties”
AutoScroll
Section titled “AutoScroll”bool AutoScroll { get; set; }Returns
System.Boolean
AlwaysScroll
Section titled “AlwaysScroll”bool AlwaysScroll { get; set; }Returns
System.Boolean
SeamlessWrap
Section titled “SeamlessWrap”bool SeamlessWrap { get; set; }Returns
System.Boolean
SeamlessWrapPaddingPixels
Section titled “SeamlessWrapPaddingPixels”float SeamlessWrapPaddingPixels { get; set; }Returns
System.Single
SeamlessWrapDistribution
Section titled “SeamlessWrapDistribution”LedSeamlessWrapDistribution SeamlessWrapDistribution { get; set; }Returns
LEDStudio.LedSeamlessWrapDistribution
ScrollAxis
Section titled “ScrollAxis”LedTextScrollAxis ScrollAxis { get; set; }Returns
LEDStudio.LedTextScrollAxis
ScrollSpeed
Section titled “ScrollSpeed”float ScrollSpeed { get; set; }Returns
System.Single