Skip to content

ITextStyledSource

InterfaceLEDStudioLEDStudio
public interface ITextStyledSource : ILedSource

Extended source interface for text-based sources that share common appearance properties (colours, text style, scrolling). Implemented by LEDStudio.TextSource, LEDStudio.TimerSource and LEDStudio.ScoreSource.

void SetColor(Color textColor)

Sets the text foreground color and marks the source dirty.

Parameters

Name Type
textColor UnityEngine.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

bool AutoScroll { get; set; }

Returns

System.Boolean

bool AlwaysScroll { get; set; }

Returns

System.Boolean

bool SeamlessWrap { get; set; }

Returns

System.Boolean

float SeamlessWrapPaddingPixels { get; set; }

Returns

System.Single

LedSeamlessWrapDistribution SeamlessWrapDistribution { get; set; }

Returns

LEDStudio.LedSeamlessWrapDistribution

LedTextScrollAxis ScrollAxis { get; set; }

Returns

LEDStudio.LedTextScrollAxis

float ScrollSpeed { get; set; }

Returns

System.Single