Skip to content

LedTextDataSource

ClassLEDStudioLEDStudio
public sealed class LedTextDataSource : LedTextBasedDataSource, ILedSource, ITextBlinkSource

Displays text content on the LED board using a built-in bitmap font. Place on the same GameObject as LedBoardController or a child — it will be auto-discovered.

public void SetText(string value)

Runtime-friendly setter that forwards to the Text property.

Parameters

NameType
valueSystem.String
public void SetTreatTextAsMarkup(bool value)

Runtime-friendly setter that forwards to the TreatTextAsMarkup property.

Parameters

NameType
valueSystem.Boolean
protected override void CreateSource(Vector2Int targetResolution)

Create the concrete source. Called from LedTextBasedDataSource.Prepare(Vector2Int).

Parameters

NameType
targetResolutionUnityEngine.Vector2Int
protected override void UpdateSubclassProperties()

Push subclass-specific inspector changes during LedTextBasedDataSource.UpdateSource(in TimeStep).

protected override void PushSubclassProperties()

Push all subclass-specific fields to the source (called from LedTextBasedDataSource.OnValidate()).

protected override void ReleaseSource()

Null out the concrete source reference (called from LedTextBasedDataSource.Release()).

public LedTextDataSource()

public override LedSourceType SourceType { get; }

Returns

LEDStudio.LedSourceType

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

public bool TreatTextAsMarkup { get; set; }

Returns

System.Boolean