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 TextSource, TimerSource and ScoreSource.

void SetColor(Color textColor)

Sets the text foreground color and marks the source dirty.

Parameters

NameType
textColorUnityEngine.Color
void SetBackgroundColor(Color backgroundColor)

Sets the source background color and marks the source dirty.

Parameters

NameType
backgroundColorUnityEngine.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

NameType
settingsLEDStudio.LedTextSettings
fontAssetTMPro.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