LedTextDataSource
public sealed class LedTextDataSource : LedTextBasedDataSource, ILedSource, ITextBlinkSourceDisplays text content on the LED board using a built-in bitmap font. Place on the same GameObject as LEDStudio.LedBoardController or a child — it will be auto-discovered.
Methods
Section titled “Methods”
SetText(string)
Section titled “SetText(string)”public void SetText(string value)Runtime-friendly setter that forwards to the Text property.
Parameters
| Name | Type |
|---|---|
value |
System.String |
SetTreatTextAsMarkup(bool)
Section titled “SetTreatTextAsMarkup(bool)”public void SetTreatTextAsMarkup(bool value)Runtime-friendly setter that forwards to the TreatTextAsMarkup property.
Parameters
| Name | Type |
|---|---|
value |
System.Boolean |
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 |
|---|---|
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).
Constructors
Section titled “Constructors”
LedTextDataSource()
Section titled “LedTextDataSource()”public LedTextDataSource()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
public string Text { get; set; }Returns
System.String
TreatTextAsMarkup
Section titled “TreatTextAsMarkup”public bool TreatTextAsMarkup { get; set; }Returns
System.Boolean