Skip to content

LedUIToolkitDataSource

ClassLEDStudioLEDStudio
[ExecuteAlways]
[AddComponentMenu("LED Studio/Data Sources/UI Toolkit Source")]
public sealed class LedUIToolkitDataSource : LedDataSourceBase, ILedSource

Feeds UI Toolkit content from the assigned UnityEngine.UIElements.UIDocument into the LED board through a managed RenderTexture. Place on the same GameObject as LEDStudio.LedBoardController or a child — it will be auto-discovered.

public void SetRenderResolution(Vector2Int resolution)

Sets the panel render resolution used before UI Toolkit output is fitted to the board.

Parameters

Name Type
resolution UnityEngine.Vector2Int
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 LedUIToolkitDataSource()

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 UIDocument Document { get; set; }

Returns

UnityEngine.UIElements.UIDocument

public Vector2Int RenderResolution { get; set; }

Returns

UnityEngine.Vector2Int