Skip to content

ScoreSource

ClassLEDStudioLEDStudio
public sealed class ScoreSource : ITextStyledSource, ILedSource, ITextScrollOffsetSource, ITextBlinkSource

Source adapter for scoreboard displays. Renders structured score data (home, away, period, clock) as a formatted text layout. Only redraws when data changes.

public LedSourceType SourceType { get; }

No description is available for this member.

Returns

LEDStudio.LedSourceType — No return description is available.

public bool IsReady { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public bool IsDirty { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public Texture OutputTexture { get; }

No description is available for this member.

Returns

UnityEngine.Texture — No return description is available.

public bool AutoScroll { get; set; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public bool AlwaysScroll { get; set; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public bool SeamlessWrap { get; set; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public float SeamlessWrapPaddingPixels { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public LedSeamlessWrapDistribution SeamlessWrapDistribution { get; set; }

No description is available for this member.

Returns

LEDStudio.LedSeamlessWrapDistribution — No return description is available.

public LedTextScrollAxis ScrollAxis { get; set; }

No description is available for this member.

Returns

LEDStudio.LedTextScrollAxis — No return description is available.

public float ScrollSpeed { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public float ScrollOffsetPercent { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public LedTextBlinkSettings BlinkSettings { get; set; }

No description is available for this member.

Returns

LEDStudio.LedTextBlinkSettings — No return description is available.

public bool RequiresTimeUpdates { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

ScoreSource(Color, string, string, LedTextSettings, TMP_FontAsset, Color)

Section titled “ScoreSource(Color, string, string, LedTextSettings, TMP_FontAsset, Color)”
public ScoreSource(Color color, string homeLabel, string awayLabel, LedTextSettings textSettings, TMP_FontAsset fontAsset, Color backgroundColor = default)

No description is available for this member.

Parameters

Name Type Description
color UnityEngine.Color
homeLabel System.String
awayLabel System.String
textSettings LEDStudio.LedTextSettings
fontAsset TMPro.TMP_FontAsset
backgroundColor UnityEngine.Color

SetTextSettings(LedTextSettings, TMP_FontAsset)

Section titled “SetTextSettings(LedTextSettings, TMP_FontAsset)”
public void SetTextSettings(LedTextSettings settings, TMP_FontAsset fontAsset)

No description is available for this member.

Parameters

Name Type Description
settings LEDStudio.LedTextSettings
fontAsset TMPro.TMP_FontAsset
public void SetColor(Color textColor)

No description is available for this member.

Parameters

Name Type Description
textColor UnityEngine.Color
public void SetBackgroundColor(Color backgroundColor)

No description is available for this member.

Parameters

Name Type Description
backgroundColor UnityEngine.Color
public void SetLabels(string homeLabel, string awayLabel)

No description is available for this member.

Parameters

Name Type Description
homeLabel System.String
awayLabel System.String
public void SetScore(string home, string away, string period, string clock)

No description is available for this member.

Parameters

Name Type Description
home System.String
away System.String
period System.String
clock System.String
public void Prepare(Vector2Int targetResolution)

No description is available for this member.

Parameters

Name Type Description
targetResolution UnityEngine.Vector2Int
public void UpdateSource(in TimeStep step)

No description is available for this member.

Parameters

Name Type Description
step ImpossibleRobert.Common.Timing.TimeStep
public void MarkClean()

No description is available for this member.

public void GetDirtyRects(List<RectInt> outRects)

No description is available for this member.

Parameters

Name Type Description
outRects System.Collections.Generic.List{UnityEngine.RectInt}
public bool TryGetContentBounds(out RectInt bounds)

No description is available for this member.

Parameters

Name Type Description
bounds UnityEngine.RectInt

Returns

System.Boolean — No return description is available.

public void Release()

No description is available for this member.