LedScoreDataSource
[AddComponentMenu("LED Studio/Data Sources/Score Source")]public sealed class LedScoreDataSource : LedTextBasedDataSource, ILedSource, ITextBlinkSourceDisplays a scoreboard on the LED board. Place on the same GameObject as LEDStudio.LedBoardController or a child — it will be auto-discovered.
Properties
Section titled “Properties”
SourceType
Section titled “SourceType”public override LedSourceType SourceType { get; }No description is available for this member.
Returns
LEDStudio.LedSourceType — No return description is available.
StyledSource
Section titled “StyledSource”protected override ITextStyledSource StyledSource { get; }The underlying text-styled source created by the subclass.
Returns
LEDStudio.ITextStyledSource — No return description is available.
Methods
Section titled “Methods”
SetLabels(string, string)
Section titled “SetLabels(string, string)”public void SetLabels(string homeLabel, string awayLabel)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
homeLabel |
System.String | |
awayLabel |
System.String | |
SetScore(string, string, string, string)
Section titled “SetScore(string, string, string, 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 | |
CreateSource(Vector2Int)
Section titled “CreateSource(Vector2Int)”protected override void CreateSource(Vector2Int targetResolution)Create the concrete source. Called from LEDStudio.LedTextBasedDataSource.Prepare(UnityEngine.Vector2Int).
Parameters
| Name | Type | Description |
|---|---|---|
targetResolution |
UnityEngine.Vector2Int | |
UpdateSubclassProperties()
Section titled “UpdateSubclassProperties()”protected override void UpdateSubclassProperties()Push subclass-specific inspector changes during LEDStudio.LedTextBasedDataSource.UpdateSource(ImpossibleRobert.Common.Timing.TimeStep%40).
PushSubclassProperties()
Section titled “PushSubclassProperties()”protected override void PushSubclassProperties()Push all subclass-specific fields to the source (called from LEDStudio.LedTextBasedDataSource.OnValidate).
ReleaseSource()
Section titled “ReleaseSource()”protected override void ReleaseSource()Null out the concrete source reference (called from LEDStudio.LedTextBasedDataSource.Release).