Skip to content

LedVideoDataSource

ClassLEDStudioLEDStudio
public sealed class LedVideoDataSource : LedDataSourceBase, ILedSource

Feeds video content from a sibling UnityEngine.Video.VideoPlayer to the LED board. Add a VideoPlayer component, assign a clip, and this source will route its output through the LED pipeline automatically.

public override void Prepare(Vector2Int targetResolution)

Allocates or resizes source resources for the requested logical board resolution.

Parameters

Name Type
targetResolution UnityEngine.Vector2Int
public override void UpdateSource(in TimeStep step)

Updates time-dependent content using the board’s deterministic simulation step.

Parameters

Name Type
step ImpossibleRobert.Common.Timing.TimeStep
public override void MarkClean()

Clears dirty state after the compositor consumes the current output.

public override void Release()

Releases textures and other resources owned by the source; repeated calls must be safe.

public LedVideoDataSource()

public override LedSourceType SourceType { get; }

Returns

LEDStudio.LedSourceType

public override bool IsReady { get; }

Returns

System.Boolean

public override bool IsDirty { get; }

Returns

System.Boolean

public override Texture OutputTexture { get; }

Returns

UnityEngine.Texture

public VideoPlayer Player { get; }

Returns

UnityEngine.Video.VideoPlayer