ILedBoardContent
public interface ILedBoardContentFocused content contract for assigning and updating board sources.
Methods
Section titled “Methods”
SetSource(LedSourceAsset)
Section titled “SetSource(LedSourceAsset)”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 |
SetComposition(LedCompositionAsset)
Section titled “SetComposition(LedCompositionAsset)”void SetComposition(LedCompositionAsset composition)Replaces the board’s reusable composition overlay, cloning it for runtime mutation.
Parameters
| Name | Type |
|---|---|
composition |
LEDStudio.LedCompositionAsset |
SetScore(string, string, string, string)
Section titled “SetScore(string, string, string, string)”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 |
SetSourceTexture(string, Texture)
Section titled “SetSourceTexture(string, Texture)”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 |
SetSourceText(string, string)
Section titled “SetSourceText(string, string)”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 |
MarkSourceDirty(string)
Section titled “MarkSourceDirty(string)”void MarkSourceDirty(string sourceId)Schedules a full refresh for externally changed content under a stable source ID.
Parameters
| Name | Type |
|---|---|
sourceId |
System.String |
MarkSourceDirty(string, RectInt)
Section titled “MarkSourceDirty(string, RectInt)”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 |
Properties
Section titled “Properties”
Source
Section titled “Source”LedSourceAsset Source { get; }Returns
LEDStudio.LedSourceAsset
Composition
Section titled “Composition”LedCompositionAsset Composition { get; }Returns
LEDStudio.LedCompositionAsset
CurrentComposition
Section titled “CurrentComposition”LedCompositionAsset CurrentComposition { get; }Returns
LEDStudio.LedCompositionAsset
OutputTexture
Section titled “OutputTexture”Texture OutputTexture { get; }Returns
UnityEngine.Texture