Skip to content

LedBoardController

ClassLEDStudioLEDStudio
public sealed class LedBoardController : MonoBehaviour, ILedBoardRuntime, ILedBoardContent, ILedBoardPlayback, ILedBoardConfiguration, ILedBoardFaults, ILedBoardDiagnostics

Main Unity scene component for LED board instances. Binds a board profile, source/composition content, and optional playlist to object lifetime. Its LedBoardSimulation composes the content; the board adds the renderer and its material (LedMaterialManager), generated geometry, physical sizing, realtime GI and sync groups. Works in both editor (ExecuteAlways) and play mode.

public void RefreshSources()

Refresh component-backed source discovery after sources are created or removed manually.

CreateRuntimeBoard(string, Transform, Vector3, Quaternion, Vector3, Vector2Int, int, int)

Section titled “CreateRuntimeBoard(string, Transform, Vector3, Quaternion, Vector3, Vector2Int, int, int)”
public static LedBoardController CreateRuntimeBoard(string boardName, Transform parent, Vector3 localPosition, Quaternion localRotation, Vector3 localScale, Vector2Int logicalResolution, int cabinetColumns = 4, int cabinetRows = 1)

Creates a scene object with a ready-to-use LED board controller, generated topology, and the default board material.

Parameters

NameTypeDescription
boardNameSystem.StringName for the created scene object. An empty value uses LED Board.
parentUnityEngine.TransformOptional parent under which the board is created.
localPositionUnityEngine.Vector3Position relative to parent.
localRotationUnityEngine.QuaternionRotation relative to parent.
localScaleUnityEngine.Vector3Scale relative to parent.
logicalResolutionUnityEngine.Vector2IntPixel resolution presented by the board.
cabinetColumnsSystem.Int32Number of cabinet columns used to partition the board.
cabinetRowsSystem.Int32Number of cabinet rows used to partition the board.

Returns

LEDStudio.LedBoardController: The controller attached to the newly created board object.

public void SetProfile(LedBoardProfile profile)

Set an authored board profile. Pass null to return to inline board settings.

Parameters

NameType
profileLEDStudio.LedBoardProfile
public void SetTopologyAsset(LedTopologyAsset topologyAsset)

Use an authored topology asset and regenerate board geometry when possible.

Parameters

NameType
topologyAssetLEDStudio.LedTopologyAsset
public void SetTopologySettings(LedTopologySettings topologySettings)

Use inline topology settings and regenerate board geometry when possible.

Parameters

NameType
topologySettingsLEDStudio.LedTopologySettings

SetExtrusionSettings(LedBoardExtrusionSettings)

Section titled “SetExtrusionSettings(LedBoardExtrusionSettings)”
public void SetExtrusionSettings(LedBoardExtrusionSettings extrusionSettings)

Use inline rear-body and front-frame settings and regenerate board geometry when possible.

Parameters

NameType
extrusionSettingsLEDStudio.LedBoardExtrusionSettings

SetExtrusionMaterials(LedBoardExtrusionMaterialSettings)

Section titled “SetExtrusionMaterials(LedBoardExtrusionMaterialSettings)”
public void SetExtrusionMaterials(LedBoardExtrusionMaterialSettings extrusionMaterials)

Set optional generated housing material overrides.

Parameters

NameType
extrusionMaterialsLEDStudio.LedBoardExtrusionMaterialSettings
public bool RefreshTopologyMesh(bool forceReplaceCustomMesh = false)

Regenerate generated topology mesh. Custom meshes are preserved unless explicitly replaceable.

Parameters

NameType
forceReplaceCustomMeshSystem.Boolean

Returns

System.Boolean

public bool TryRegenerateTopologyMesh(bool forceReplaceCustomMesh)

Rebuilds the board mesh from its current topology and physical settings when the assigned mesh may be replaced.

Parameters

NameTypeDescription
forceReplaceCustomMeshSystem.BooleanWhether an assigned custom mesh may be replaced. When false, only missing or LED Studio-generated meshes are replaced.

Returns

System.Boolean: True when a generated mesh was assigned; otherwise false.

SetInlineBoardSettings(Vector2Int, int, int)

Section titled “SetInlineBoardSettings(Vector2Int, int, int)”
public void SetInlineBoardSettings(Vector2Int logicalResolution, int cabinetColumns = 4, int cabinetRows = 1)

Set inline board settings without constructing a profile asset.

Parameters

NameType
logicalResolutionUnityEngine.Vector2Int
cabinetColumnsSystem.Int32
cabinetRowsSystem.Int32
public void SetInlineBoardDefinition(BoardDefinition definition)

Set a complete inline board definition without constructing a profile asset.

Parameters

NameType
definitionLEDStudio.BoardDefinition
public void SetPitch(LedPitchPreset pitch)

Set inline physical pixel pitch and switch the board away from profile-driven settings.

Parameters

NameType
pitchLEDStudio.LedPitchPreset
public void SetAutoSizeFromPitch(bool value)

Enable or disable automatic transform scaling from pixel pitch.

Parameters

NameType
valueSystem.Boolean
public void SetEmitter(LedEmitterParams emitter)

Set inline emitter shape and response settings.

Parameters

NameType
emitterLEDStudio.LedEmitterParams
public void SetCabinetGrid(LedCabinetGrid cabinetGrid)

Set inline cabinet layout, seam width, and bezel darkening.

Parameters

NameType
cabinetGridLEDStudio.LedCabinetGrid
public void SetDefaultReduction(LedReductionMode reductionMode)

Set the inline default source reduction mode.

Parameters

NameType
reductionModeLEDStudio.LedReductionMode
public void SetViewingDistances(float closeUpDistance, float farBlendDistance)

Set inline close-up and far blend viewing distances.

Parameters

NameType
closeUpDistanceSystem.Single
farBlendDistanceSystem.Single
public void SetQualityProfile(LedQualityProfile profile)

Set an authored quality profile. Pass null to return to inline quality settings.

Parameters

NameType
profileLEDStudio.LedQualityProfile

SetInlineQualitySettings(int, float, LedReductionMode, bool, LedQualityLevel, bool, bool, LedQualityLevel, bool)

Section titled “SetInlineQualitySettings(int, float, LedReductionMode, bool, LedQualityLevel, bool, bool, LedQualityLevel, bool)”
public void SetInlineQualitySettings(int maxUpdatesPerFrame = 0, float targetUpdateRateHz = 0, LedReductionMode reductionOverride = LedReductionMode.Box, bool useReductionOverride = false, LedQualityLevel qualityLevel = LedQualityLevel.High, bool enableBloom = true, bool enableCloseUpMode = true, LedQualityLevel defectQuality = LedQualityLevel.High, bool enableTemporalDefects = true)

Set inline quality settings without constructing a quality profile asset.

Parameters

NameType
maxUpdatesPerFrameSystem.Int32
targetUpdateRateHzSystem.Single
reductionOverrideLEDStudio.LedReductionMode
useReductionOverrideSystem.Boolean
qualityLevelLEDStudio.LedQualityLevel
enableBloomSystem.Boolean
enableCloseUpModeSystem.Boolean
defectQualityLEDStudio.LedQualityLevel
enableTemporalDefectsSystem.Boolean
public void SetEmitterCount(int columns, int rows)

Set the emitter-grid resolution while preserving the current cabinet layout.

Parameters

NameType
columnsSystem.Int32
rowsSystem.Int32
public void SetEmitterCount(Vector2Int emitterCount)

Set the emitter-grid resolution while preserving the current cabinet layout.

Parameters

NameType
emitterCountUnityEngine.Vector2Int
public void SetEmitterDensity(float emittersPerUnit)

Calculate emitter count from this board’s current local scale and a world-units density.

Parameters

NameType
emittersPerUnitSystem.Single
public void SetEmitterCountForSize(Vector2 size, float emittersPerUnit)

Calculate emitter count from a supplied size and world-units density.

Parameters

NameType
sizeUnityEngine.Vector2
emittersPerUnitSystem.Single

TryGetBoardPoint(Ray, out Vector2, out Vector2Int)

Section titled “TryGetBoardPoint(Ray, out Vector2, out Vector2Int)”
public bool TryGetBoardPoint(Ray worldRay, out Vector2 normalized, out Vector2Int emitter)

Map a world-space ray onto the board and return normalized board coordinates plus emitter coordinates.

Parameters

NameType
worldRayUnityEngine.Ray
normalizedUnityEngine.Vector2
emitterUnityEngine.Vector2Int

Returns

System.Boolean

TryGetBoardPoint(Vector3, out Vector2, out Vector2Int)

Section titled “TryGetBoardPoint(Vector3, out Vector2, out Vector2Int)”
public bool TryGetBoardPoint(Vector3 worldPoint, out Vector2 normalized, out Vector2Int emitter)

Map a world-space point onto the board and return normalized board coordinates plus emitter coordinates.

Parameters

NameType
worldPointUnityEngine.Vector3
normalizedUnityEngine.Vector2
emitterUnityEngine.Vector2Int

Returns

System.Boolean

public void SetSource(LedSourceAsset source)

Set the board source overlay. Pass null to clear the source overlay.

Parameters

NameType
sourceLEDStudio.LedSourceAsset
public void SetComposition(LedCompositionAsset composition)

Set the board composition overlay. Pass null to clear the composition overlay.

Parameters

NameType
compositionLEDStudio.LedCompositionAsset
public void SetLiveInput(string inputName, LedDataSourceBase sourceComponent)

Bind a reusable composition input slot to a scene data source component.

Parameters

NameType
inputNameSystem.String
sourceComponentLEDStudio.LedDataSourceBase
public void SetLiveInputTexture(string inputName, Texture texture)

Bind a reusable composition input slot directly to a texture.

Parameters

NameType
inputNameSystem.String
textureUnityEngine.Texture
public void ClearLiveInput(string inputName)

Remove a reusable composition input binding by slot name.

Parameters

NameType
inputNameSystem.String

AddImagePort(string, Texture2D, Rect?, LedFitMode, int)

Section titled “AddImagePort(string, Texture2D, Rect?, LedFitMode, int)”
public LedSourceAsset AddImagePort(string sourceId, Texture2D texture = null, Rect? zone = null, LedFitMode fitMode = LedFitMode.Fit, int priority = 0)

Add an image source layer backed by a texture asset.

Parameters

NameType
sourceIdSystem.String
textureUnityEngine.Texture2D
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32

Returns

LEDStudio.LedSourceAsset

AddRenderTexturePort(string, RenderTexture, Rect?, LedFitMode, int, UpdateScheduleSettings)

Section titled “AddRenderTexturePort(string, RenderTexture, Rect?, LedFitMode, int, UpdateScheduleSettings)”
public LedSourceAsset AddRenderTexturePort(string sourceId, RenderTexture renderTexture, Rect? zone = null, LedFitMode fitMode = LedFitMode.Stretch, int priority = 0, UpdateScheduleSettings updateSchedule = default)

Add a source layer backed by an externally updated render texture.

Parameters

NameType
sourceIdSystem.String
renderTextureUnityEngine.RenderTexture
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
updateScheduleImpossibleRobert.Common.Timing.UpdateScheduleSettings

Returns

LEDStudio.LedSourceAsset

CreateDrawingPort(string, Vector2Int, Rect?, LedFitMode, int, RenderTextureFormat)

Section titled “CreateDrawingPort(string, Vector2Int, Rect?, LedFitMode, int, RenderTextureFormat)”
public RenderTexture CreateDrawingPort(string sourceId, Vector2Int renderResolution, Rect? zone = null, LedFitMode fitMode = LedFitMode.Stretch, int priority = 0, RenderTextureFormat format = 0)

Create a runtime-owned render texture and add it as a draw-anything source layer.

Parameters

NameType
sourceIdSystem.String
renderResolutionUnityEngine.Vector2Int
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
formatUnityEngine.RenderTextureFormat

Returns

UnityEngine.RenderTexture

CreateDrawingComponentPort(string, Vector2Int, Rect?, LedFitMode, int, RenderTextureFormat)

Section titled “CreateDrawingComponentPort(string, Vector2Int, Rect?, LedFitMode, int, RenderTextureFormat)”
public RenderTexture CreateDrawingComponentPort(string sourceId, Vector2Int renderResolution, Rect? zone = null, LedFitMode fitMode = LedFitMode.Stretch, int priority = 0, RenderTextureFormat format = 0)

Creates a render texture to draw into, shown by a source component on a child of the board. Unlike LedBoardController.CreateDrawingPort(string, Vector2Int, Rect?, LedFitMode, int, RenderTextureFormat), whose layer belongs to the board composition below every source component, it is ordered by priority with the other source components, such as text drawn by an external renderer, so a drawing can lie behind such text or in front of it. The board owns the texture and the child.

Parameters

NameType
sourceIdSystem.String
renderResolutionUnityEngine.Vector2Int
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
formatUnityEngine.RenderTextureFormat

Returns

UnityEngine.RenderTexture

AddUIToolkitPort(string, PanelSettings, Vector2Int?, Rect?, LedFitMode, int, UpdateScheduleSettings)

Section titled “AddUIToolkitPort(string, PanelSettings, Vector2Int?, Rect?, LedFitMode, int, UpdateScheduleSettings)”
public LedSourceAsset AddUIToolkitPort(string sourceId, PanelSettings panelSettings, Vector2Int? renderResolution = null, Rect? zone = null, LedFitMode fitMode = LedFitMode.Stretch, int priority = 0, UpdateScheduleSettings updateSchedule = default)

Add a source layer backed by UI Toolkit panel settings.

Parameters

NameType
sourceIdSystem.String
panelSettingsUnityEngine.UIElements.PanelSettings
renderResolutionSystem.Nullable{UnityEngine.Vector2Int}
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
updateScheduleImpossibleRobert.Common.Timing.UpdateScheduleSettings

Returns

LEDStudio.LedSourceAsset

AddTextPort(string, string, Rect?, LedFitMode, int, Color?, float, TextAnchor, LedTextSizingMode, TMP_FontAsset, bool, float, float, bool, float, LedSeamlessWrapDistribution, LedTextScrollAxis)

Section titled “AddTextPort(string, string, Rect?, LedFitMode, int, Color?, float, TextAnchor, LedTextSizingMode, TMP_FontAsset, bool, float, float, bool, float, LedSeamlessWrapDistribution, LedTextScrollAxis)”
public LedSourceAsset AddTextPort(string sourceId, string text = "", Rect? zone = null, LedFitMode fitMode = LedFitMode.Fit, int priority = 0, Color? color = null, float textSize = 24, TextAnchor alignment = 4, LedTextSizingMode sizingMode = LedTextSizingMode.FitBox, TMP_FontAsset font = null, bool scroll = false, float scrollSpeed = 30, float scrollOffsetPercent = 0, bool seamlessWrap = false, float seamlessWrapPaddingPixels = 8, LedSeamlessWrapDistribution seamlessWrapDistribution = LedSeamlessWrapDistribution.SingleRepeat, LedTextScrollAxis scrollAxis = LedTextScrollAxis.Horizontal)

Add a text source layer with optional scrolling and seamless wrap.

Parameters

NameType
sourceIdSystem.String
textSystem.String
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
colorSystem.Nullable{UnityEngine.Color}
textSizeSystem.Single
alignmentUnityEngine.TextAnchor
sizingModeLEDStudio.LedTextSizingMode
fontTMPro.TMP_FontAsset
scrollSystem.Boolean
scrollSpeedSystem.Single
scrollOffsetPercentSystem.Single
seamlessWrapSystem.Boolean
seamlessWrapPaddingPixelsSystem.Single
seamlessWrapDistributionLEDStudio.LedSeamlessWrapDistribution
scrollAxisLEDStudio.LedTextScrollAxis

Returns

LEDStudio.LedSourceAsset

AddTextComponentPort(string, string, Rect?, LedFitMode, int, Color?, LedTextSettings?, TMP_FontAsset)

Section titled “AddTextComponentPort(string, string, Rect?, LedFitMode, int, Color?, LedTextSettings?, TMP_FontAsset)”
public LedTextDataSource AddTextComponentPort(string sourceId, string text = "", Rect? zone = null, LedFitMode fitMode = LedFitMode.Fit, int priority = 0, Color? color = null, LedTextSettings? textSettings = null, TMP_FontAsset font = null)

Adds a text source as a component on a child of its own, for renderers that need a scene object, such as Text Studio (see its LED Studio integration). LedBoardController.AddTextPort(string, string, Rect?, LedFitMode, int, Color?, float, TextAnchor, LedTextSizingMode, TMP_FontAsset, bool, float, float, bool, float, LedSeamlessWrapDistribution, LedTextScrollAxis) makes an asset-based source instead.

Parameters

NameType
sourceIdSystem.String
textSystem.String
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
colorSystem.Nullable{UnityEngine.Color}
textSettingsSystem.Nullable{LEDStudio.LedTextSettings}
fontTMPro.TMP_FontAsset

Returns

LEDStudio.LedTextDataSource

AddTimerPort(string, float, bool, Rect?, LedFitMode, int, Color?, float, TextAnchor, LedTextSizingMode, TMP_FontAsset, bool, float, float, bool, float, LedSeamlessWrapDistribution, LedTextScrollAxis)

Section titled “AddTimerPort(string, float, bool, Rect?, LedFitMode, int, Color?, float, TextAnchor, LedTextSizingMode, TMP_FontAsset, bool, float, float, bool, float, LedSeamlessWrapDistribution, LedTextScrollAxis)”
public LedTimerDataSource AddTimerPort(string sourceId, float initialSeconds = 60, bool autoStart = false, Rect? zone = null, LedFitMode fitMode = LedFitMode.Fit, int priority = 0, Color? color = null, float textSize = 24, TextAnchor alignment = 4, LedTextSizingMode sizingMode = LedTextSizingMode.FitBox, TMP_FontAsset font = null, bool scroll = false, float scrollSpeed = 30, float scrollOffsetPercent = 0, bool seamlessWrap = false, float seamlessWrapPaddingPixels = 8, LedSeamlessWrapDistribution seamlessWrapDistribution = LedSeamlessWrapDistribution.SingleRepeat, LedTextScrollAxis scrollAxis = LedTextScrollAxis.Horizontal)

Add a scene-backed timer source layer with optional scrolling and seamless wrap.

Parameters

NameType
sourceIdSystem.String
initialSecondsSystem.Single
autoStartSystem.Boolean
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
colorSystem.Nullable{UnityEngine.Color}
textSizeSystem.Single
alignmentUnityEngine.TextAnchor
sizingModeLEDStudio.LedTextSizingMode
fontTMPro.TMP_FontAsset
scrollSystem.Boolean
scrollSpeedSystem.Single
scrollOffsetPercentSystem.Single
seamlessWrapSystem.Boolean
seamlessWrapPaddingPixelsSystem.Single
seamlessWrapDistributionLEDStudio.LedSeamlessWrapDistribution
scrollAxisLEDStudio.LedTextScrollAxis

Returns

LEDStudio.LedTimerDataSource

AddScorePort(string, string, string, string, string, string, string, Rect?, LedFitMode, int, Color?, float, TextAnchor, LedTextSizingMode, TMP_FontAsset, bool, float, float, bool, float, LedSeamlessWrapDistribution, LedTextScrollAxis)

Section titled “AddScorePort(string, string, string, string, string, string, string, Rect?, LedFitMode, int, Color?, float, TextAnchor, LedTextSizingMode, TMP_FontAsset, bool, float, float, bool, float, LedSeamlessWrapDistribution, LedTextScrollAxis)”
public LedScoreDataSource AddScorePort(string sourceId, string homeLabel = "HOME", string awayLabel = "AWAY", string homeScore = "0", string awayScore = "0", string period = "", string clock = "", Rect? zone = null, LedFitMode fitMode = LedFitMode.Fit, int priority = 0, Color? color = null, float textSize = 24, TextAnchor alignment = 4, LedTextSizingMode sizingMode = LedTextSizingMode.FitBox, TMP_FontAsset font = null, bool scroll = false, float scrollSpeed = 30, float scrollOffsetPercent = 0, bool seamlessWrap = false, float seamlessWrapPaddingPixels = 8, LedSeamlessWrapDistribution seamlessWrapDistribution = LedSeamlessWrapDistribution.SingleRepeat, LedTextScrollAxis scrollAxis = LedTextScrollAxis.Horizontal)

Add a scene-backed score source layer with optional scrolling and seamless wrap.

Parameters

NameType
sourceIdSystem.String
homeLabelSystem.String
awayLabelSystem.String
homeScoreSystem.String
awayScoreSystem.String
periodSystem.String
clockSystem.String
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
colorSystem.Nullable{UnityEngine.Color}
textSizeSystem.Single
alignmentUnityEngine.TextAnchor
sizingModeLEDStudio.LedTextSizingMode
fontTMPro.TMP_FontAsset
scrollSystem.Boolean
scrollSpeedSystem.Single
scrollOffsetPercentSystem.Single
seamlessWrapSystem.Boolean
seamlessWrapPaddingPixelsSystem.Single
seamlessWrapDistributionLEDStudio.LedSeamlessWrapDistribution
scrollAxisLEDStudio.LedTextScrollAxis

Returns

LEDStudio.LedScoreDataSource

AddCanvasPort(string, Camera, Vector2Int, Rect?, LedFitMode, int, UpdateScheduleSettings)

Section titled “AddCanvasPort(string, Camera, Vector2Int, Rect?, LedFitMode, int, UpdateScheduleSettings)”
public LedCanvasDataSource AddCanvasPort(string sourceId, Camera sourceCamera, Vector2Int renderResolution, Rect? zone = null, LedFitMode fitMode = LedFitMode.Stretch, int priority = 0, UpdateScheduleSettings updateSchedule = default)

Add a scene-backed camera/canvas source layer.

Parameters

NameType
sourceIdSystem.String
sourceCameraUnityEngine.Camera
renderResolutionUnityEngine.Vector2Int
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
updateScheduleImpossibleRobert.Common.Timing.UpdateScheduleSettings

Returns

LEDStudio.LedCanvasDataSource

AddUIToolkitPort(string, Component, Vector2Int, Rect?, LedFitMode, int, UpdateScheduleSettings)

Section titled “AddUIToolkitPort(string, Component, Vector2Int, Rect?, LedFitMode, int, UpdateScheduleSettings)”
public LedUIToolkitDataSource AddUIToolkitPort(string sourceId, Component uiPanel, Vector2Int renderResolution, Rect? zone = null, LedFitMode fitMode = LedFitMode.Stretch, int priority = 0, UpdateScheduleSettings updateSchedule = default)

Add a scene-backed UI Toolkit panel source layer.

Parameters

NameTypeDescription
sourceIdSystem.String
uiPanelUnityEngine.ComponentA UnityEngine.UIElements.UIDocument or, on Unity 6.5 or newer, a PanelRenderer.
renderResolutionUnityEngine.Vector2Int
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
updateScheduleImpossibleRobert.Common.Timing.UpdateScheduleSettings

Returns

LEDStudio.LedUIToolkitDataSource

AddVideoPort(string, VideoClip, Rect?, LedFitMode, int, bool, bool)

Section titled “AddVideoPort(string, VideoClip, Rect?, LedFitMode, int, bool, bool)”
public LedVideoDataSource AddVideoPort(string sourceId, VideoClip clip = null, Rect? zone = null, LedFitMode fitMode = LedFitMode.Fill, int priority = 0, bool playOnAwake = true, bool loop = true)

Add a scene-backed video player source layer.

Parameters

NameType
sourceIdSystem.String
clipUnityEngine.Video.VideoClip
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
playOnAwakeSystem.Boolean
loopSystem.Boolean

Returns

LEDStudio.LedVideoDataSource

AddSourcePort(string, LedSourceAsset, Rect?, LedFitMode, int, bool)

Section titled “AddSourcePort(string, LedSourceAsset, Rect?, LedFitMode, int, bool)”
public void AddSourcePort(string sourceId, LedSourceAsset source, Rect? zone = null, LedFitMode fitMode = LedFitMode.Fit, int priority = 0, bool preserveAlpha = false)

Add a custom source asset as a composition layer.

Parameters

NameType
sourceIdSystem.String
sourceLEDStudio.LedSourceAsset
zoneSystem.Nullable{UnityEngine.Rect}
fitModeLEDStudio.LedFitMode
prioritySystem.Int32
preserveAlphaSystem.Boolean
public void SetPlaylist(LedPlaylistAsset playlist)

Activate a playlist asset. Pass null to clear the currently assigned playlist. Playback time resets to 0.

Parameters

NameType
playlistLEDStudio.LedPlaylistAsset
public void ResetPlaylistPlayback()

Reset playback to the start of the currently assigned playlist without changing which playlist is active.

public void RestartCurrentPlaylistEntry()

Restarts the active playlist entry and rebuilds its composition, or resets the board clock when no playlist is assigned.

public void RestartPlaylistEntry(int index, bool debugOverride, float transitionProgress)

Restarts a playlist entry at an optional transition preview point and synchronizes the board’s clock group.

Parameters

NameTypeDescription
indexSystem.Int32Zero-based entry index. Values outside the playlist are clamped.
debugOverrideSystem.BooleanWhether to hold the selected entry as an editor or diagnostic override.
transitionProgressSystem.SingleNormalized position within the entry transition.
public void PreviewPreviousPlaylistEntry()

Switches the board preview to the preceding playlist entry without waiting for playback.

public void PreviewNextPlaylistEntry()

Switches the board preview to the following playlist entry without waiting for playback.

public void PreviewPlaylistEntry(int index)

Applies a playlist entry immediately as a preview and rebuilds the displayed composition.

Parameters

NameTypeDescription
indexSystem.Int32Zero-based entry index to preview.

SetPlaylistDebugOverride(bool, int, float)

Section titled “SetPlaylistDebugOverride(bool, int, float)”
public void SetPlaylistDebugOverride(bool enabled, int entryIndex, float transitionProgress)

Enables or clears a fixed playlist preview used to inspect an entry and its transition independently of playback time.

Parameters

NameTypeDescription
enabledSystem.BooleanWhether the fixed preview overrides normal playlist playback.
entryIndexSystem.Int32Zero-based entry index to hold while the override is enabled.
transitionProgressSystem.SingleNormalized transition position to preview.
public void SetScore(string home, string away, string period, string clock)

Push structured score data to score-type sources on the board.

Parameters

NameType
homeSystem.String
awaySystem.String
periodSystem.String
clockSystem.String
public void SetSourceTexture(string sourceId, Texture texture)

Override the output texture of a specific source at runtime and schedule the board to refresh. The Source ID is a stable board-local address.

Parameters

NameType
sourceIdSystem.String
textureUnityEngine.Texture
public void SetSourceText(string sourceId, string value)

Set the text content of a specific text source at runtime and schedule the board to refresh. The Source ID is a stable board-local address.

Parameters

NameType
sourceIdSystem.String
valueSystem.String
public void MarkSourceDirty(string sourceId)

Mark a source dirty when its content changed outside the board API, such as an externally rendered texture updating in place.

Parameters

NameType
sourceIdSystem.String
public void MarkSourceDirty(string sourceId, RectInt sourceRect)

Mark a source-space rectangle dirty by stable board-local Source ID so manual or externally driven sources can update only the affected board region on the next pass.

Parameters

NameType
sourceIdSystem.String
sourceRectUnityEngine.RectInt
public void SetSuspended(bool value)

Pause or resume board updates while keeping allocated textures alive.

Parameters

NameType
valueSystem.Boolean
public void ApplyDefectProfile(LedDefectBlendRequest request)

Apply a defect profile with blending parameters.

Parameters

NameType
requestLEDStudio.LedDefectBlendRequest
public void ApplyPhysicalSize()

Apply the active board definition’s physical LED size to the transform scale.

public void ClearDefectProfile(string profileId)

Remove a specific defect profile by asset name.

Parameters

NameType
profileIdSystem.String
public void SetDefectSeverity(string profileId, float severity)

Adjust severity of a specific active defect profile, or of every active profile when profileId is ”*”.

Parameters

NameType
profileIdSystem.String
severitySystem.Single
public void SetDefectEnabled(bool value)

Master toggle for all defect simulation on this board.

Parameters

NameType
valueSystem.Boolean
public void SetBackgroundColor(Color color)

Set the background color drawn before sources are composited.

Parameters

NameType
colorUnityEngine.Color
public void SetPresentationBackgroundColor(Color color)

Set the presentation shader background color behind LED emitters.

Parameters

NameType
colorUnityEngine.Color
public void SetSyncClock(double seconds)

Override the board’s sync clock. If the board belongs to a sync group the override is forwarded to every member of the group.

Parameters

NameType
secondsSystem.Double
public void SetSyncGroup(string syncGroupId)

Assign this board to a sync group. Pass null or empty to use playlist sync or no sync group.

Parameters

NameType
syncGroupIdSystem.String

public LedBoardController()

public ILedBoardContent Content { get; }

Focused source and composition view.

Returns

LEDStudio.ILedBoardContent

public ILedBoardPlayback Playback { get; }

Focused playlist and synchronization view.

Returns

LEDStudio.ILedBoardPlayback

public ILedBoardConfiguration Configuration { get; }

Focused board-definition and physical-sizing view.

Returns

LEDStudio.ILedBoardConfiguration

public ILedBoardFaults Faults { get; }

Focused defect-simulation view.

Returns

LEDStudio.ILedBoardFaults

public ILedBoardDiagnostics Diagnostics { get; }

Focused lifecycle and output diagnostics view.

Returns

LEDStudio.ILedBoardDiagnostics

public LedBoardProfile Profile { get; }

Profile currently driving board settings, or null when the board uses inline runtime settings.

Returns

LEDStudio.LedBoardProfile

public BoardDefinition Definition { get; }

Current resolved board definition snapshot.

Returns

LEDStudio.BoardDefinition

public LedQualityProfile QualityProfile { get; }

Quality profile currently driving quality settings, or null when inline quality settings are used.

Returns

LEDStudio.LedQualityProfile

public LedPitchPreset Pitch { get; }

Resolved physical pixel pitch used by the active board definition.

Returns

LEDStudio.LedPitchPreset

public bool AutoSizeFromPitch { get; }

Whether the board should keep transform scale matched to resolution and pixel pitch.

Returns

System.Boolean

public LedEmitterParams Emitter { get; }

Resolved emitter shape and response settings used by the active board definition.

Returns

LEDStudio.LedEmitterParams

public LedCabinetGrid CabinetGrid { get; }

Resolved cabinet layout used by the active board definition.

Returns

LEDStudio.LedCabinetGrid

public LedReductionMode DefaultReduction { get; }

Resolved default source reduction mode used by the active board definition.

Returns

LEDStudio.LedReductionMode

public float CloseUpDistance { get; }

Resolved close-up distance used by presentation shading.

Returns

System.Single

public float FarBlendDistance { get; }

Resolved far blend distance used by presentation shading.

Returns

System.Single

public int MaxUpdatesPerFrame { get; }

Resolved maximum board updates per frame across all boards (0 = unlimited).

Returns

System.Int32

public float TargetUpdateRateHz { get; }

Resolved target composition update rate in Hz (0 = every frame).

Returns

System.Single

public bool UseReductionOverride { get; }

Whether the resolved reduction override is active.

Returns

System.Boolean

public LedReductionMode ReductionOverride { get; }

Resolved reduction override mode.

Returns

LEDStudio.LedReductionMode

public LedQualityLevel QualityLevel { get; }

Resolved visual quality level.

Returns

LEDStudio.LedQualityLevel

public bool EnableBloom { get; }

Whether HDR bloom contribution is enabled.

Returns

System.Boolean

public bool EnableCloseUpMode { get; }

Whether close-up emitter shading is enabled.

Returns

System.Boolean

public LedQualityLevel DefectQuality { get; }

Resolved defect texture quality after quality-level clamping.

Returns

LEDStudio.LedQualityLevel

public bool EnableTemporalDefects { get; }

Whether time-varying defect effects are enabled.

Returns

System.Boolean

public Color BackgroundColor { get; }

Background color drawn before sources are composited.

Returns

UnityEngine.Color

public Color PresentationBackgroundColor { get; }

Background color used by the presentation shader behind LED emitters.

Returns

UnityEngine.Color

public LedTopologyAsset TopologyAsset { get; }

Topology asset currently driving generated board geometry, or null when inline topology settings are used.

Returns

LEDStudio.LedTopologyAsset

public LedTopologySettings TopologySettings { get; }

Resolved topology settings used by generated board geometry and physical sizing.

Returns

LEDStudio.LedTopologySettings

public LedBoardExtrusionSettings ExtrusionSettings { get; }

Resolved rear-body and front-frame settings used by generated board geometry.

Returns

LEDStudio.LedBoardExtrusionSettings

public LedBoardExtrusionMaterialSettings ExtrusionMaterials { get; }

Resolved generated housing material assignments.

Returns

LEDStudio.LedBoardExtrusionMaterialSettings

public Vector2Int EmitterCount { get; set; }

Current emitter-grid resolution. Setting this switches the board to inline runtime settings.

Returns

UnityEngine.Vector2Int

public RenderTexture LogicalTexture { get; }

Returns

UnityEngine.RenderTexture

public Vector2 PhysicalSizeMeters { get; }

Physical board size derived from the active definition and pixel pitch.

Returns

UnityEngine.Vector2

public Vector3 PhysicalScale { get; }

Recommended local scale derived from the active definition, pitch, and topology.

Returns

UnityEngine.Vector3

public bool IsGroupControlled { get; }

True when a LedBoardGroup is driving this board’s content.

Returns

System.Boolean

public LedCompositionAsset CurrentComposition { get; }

Runtime display composition containing playlist content plus board source, composition, and component overlays.

Returns

LEDStudio.LedCompositionAsset

public LedBoardState LifecycleState { get; }

Current lifecycle of the board.

Returns

LEDStudio.LedBoardState

public int PlaylistIndex { get; }

Index of the currently playing entry in the active playlist, or -1.

Returns

System.Int32

public double PlaylistTime { get; }

Elapsed time in seconds since the playlist started.

Returns

System.Double

public bool PlaylistDebugOverrideEnabled { get; }

Returns

System.Boolean

public int PlaylistDebugEntryIndex { get; }

Returns

System.Int32

public float PlaylistDebugTransitionProgress { get; }

Returns

System.Single

public bool DefectsEnabled { get; }

Whether defect simulation is currently enabled on the board.

Returns

System.Boolean

public Texture OutputTexture { get; }

The current logical board output texture.

Returns

UnityEngine.Texture

public string SyncGroupId { get; }

Effective sync group id for this board (either its own assignment or the group carried by the active playlist). Empty when not participating in a sync group.

Returns

System.String

public LedPlaylistAsset Playlist { get; }

Currently assigned playlist asset, or null.

Returns

LEDStudio.LedPlaylistAsset

public LedSourceAsset Source { get; }

Currently assigned direct source overlay, or null.

Returns

LEDStudio.LedSourceAsset

public LedCompositionAsset Composition { get; }

Currently assigned composition overlay, or null.

Returns

LEDStudio.LedCompositionAsset

public IReadOnlyList<LedLiveInputBinding> InputBindings { get; }

Live input bindings used by reusable composition input layers.

Returns

System.Collections.Generic.IReadOnlyList{LEDStudio.LedLiveInputBinding}