LedScoreDataSource
public sealed class LedScoreDataSource : LedTextBasedDataSource, ILedSource, ITextBlinkSourceDisplays a scoreboard on the LED board.
Place on the same GameObject as LedBoardController
or a child — it will be auto-discovered.
Methods
Section titled “Methods”
SetLabels(string, string)
Section titled “SetLabels(string, string)”public void SetLabels(string homeLabel, string awayLabel)Updates both team labels and invalidates the owning board for immediate recomposition.
Parameters
| Name | Type |
|---|---|
homeLabel | System.String |
awayLabel | System.String |
Remarks
Null labels fall back to HOME and AWAY.
SetScore(string, string, string, string)
Section titled “SetScore(string, string, string, string)”public void SetScore(string home, string away, string period, string clock)Updates the displayed scores, period, and clock as one board refresh.
Parameters
| Name | Type |
|---|---|
home | System.String |
away | System.String |
period | System.String |
clock | System.String |
Remarks
Null scores become 0; null period and clock values become empty text.
CreateSource(Vector2Int)
Section titled “CreateSource(Vector2Int)”protected override void CreateSource(Vector2Int targetResolution)Create the concrete source. Called from LedTextBasedDataSource.Prepare(Vector2Int).
Parameters
| Name | Type |
|---|---|
targetResolution | UnityEngine.Vector2Int |
UpdateSubclassProperties()
Section titled “UpdateSubclassProperties()”protected override void UpdateSubclassProperties()Push subclass-specific inspector changes during LedTextBasedDataSource.UpdateSource(in TimeStep).
PushSubclassProperties()
Section titled “PushSubclassProperties()”protected override void PushSubclassProperties()Push all subclass-specific fields to the source (called from LedTextBasedDataSource.OnValidate()).
ReleaseSource()
Section titled “ReleaseSource()”protected override void ReleaseSource()Null out the concrete source reference (called from LedTextBasedDataSource.Release()).
Constructors
Section titled “Constructors”
LedScoreDataSource()
Section titled “LedScoreDataSource()”public LedScoreDataSource()Properties
Section titled “Properties”
SourceType
Section titled “SourceType”public override LedSourceType SourceType { get; }Returns
LEDStudio.LedSourceType
StyledSource
Section titled “StyledSource”protected override ITextStyledSource StyledSource { get; }The underlying text-styled source created by the subclass.
Returns
LEDStudio.ITextStyledSource