Skip to content

ILedBoardContent

InterfaceLEDStudioLEDStudio
public interface ILedBoardContent

Focused content contract for assigning and updating board sources.

void SetSource(LedSourceAsset source)

Replaces the board’s direct source overlay, or clears it when the value is missing.

Parameters

Name Type
source LEDStudio.LedSourceAsset
void SetComposition(LedCompositionAsset composition)

Replaces the board’s reusable composition overlay, cloning it for runtime mutation.

Parameters

Name Type
composition LEDStudio.LedCompositionAsset
void SetScore(string home, string away, string period, string clock)

Pushes structured scoreboard values to every score-capable source discovered on the board.

Parameters

Name Type
home System.String
away System.String
period System.String
clock System.String
void SetSourceTexture(string sourceId, Texture texture)

Replaces the texture of a source addressed by its stable board-local ID and schedules a refresh.

Parameters

Name Type
sourceId System.String
texture UnityEngine.Texture
void SetSourceText(string sourceId, string value)

Replaces text in a source addressed by its stable board-local ID and schedules a refresh.

Parameters

Name Type
sourceId System.String
value System.String
void MarkSourceDirty(string sourceId)

Schedules a full refresh for externally changed content under a stable source ID.

Parameters

Name Type
sourceId System.String
void MarkSourceDirty(string sourceId, RectInt sourceRect)

Schedules a partial source-space refresh for externally changed content.

Parameters

Name Type
sourceId System.String
sourceRect UnityEngine.RectInt

LedSourceAsset Source { get; }

Returns

LEDStudio.LedSourceAsset

LedCompositionAsset Composition { get; }

Returns

LEDStudio.LedCompositionAsset

LedCompositionAsset CurrentComposition { get; }

Returns

LEDStudio.LedCompositionAsset

Texture OutputTexture { get; }

Returns

UnityEngine.Texture