LedCanvasDataSource
[ExecuteAlways][AddComponentMenu("LED Studio/Data Sources/Canvas Source")]public sealed class LedCanvasDataSource : LedDataSourceBase, ILedSourceFeeds uGUI Canvas content into the LED board via a Camera that renders the Canvas to a managed RenderTexture. Assign a Camera that sees the Canvas; the component handles the RenderTexture lifecycle automatically. Place on the same GameObject as LEDStudio.LedBoardController or a child — it will be auto-discovered.
Methods
Section titled “Methods”
SetRenderResolution(Vector2Int)
Section titled “SetRenderResolution(Vector2Int)”public void SetRenderResolution(Vector2Int resolution)Sets the off-screen canvas resolution used before the image is fitted to the board.
Parameters
| Name | Type |
|---|---|
resolution |
UnityEngine.Vector2Int |
Prepare(Vector2Int)
Section titled “Prepare(Vector2Int)”public override void Prepare(Vector2Int targetResolution)Allocates or resizes source resources for the requested logical board resolution.
Parameters
| Name | Type |
|---|---|
targetResolution |
UnityEngine.Vector2Int |
UpdateSource(in TimeStep)
Section titled “UpdateSource(in TimeStep)”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 |
MarkClean()
Section titled “MarkClean()”public override void MarkClean()Clears dirty state after the compositor consumes the current output.
Release()
Section titled “Release()”public override void Release()Releases textures and other resources owned by the source; repeated calls must be safe.
Constructors
Section titled “Constructors”
LedCanvasDataSource()
Section titled “LedCanvasDataSource()”public LedCanvasDataSource()Properties
Section titled “Properties”
SourceType
Section titled “SourceType”public override LedSourceType SourceType { get; }Returns
LEDStudio.LedSourceType
IsReady
Section titled “IsReady”public override bool IsReady { get; }Returns
System.Boolean
IsDirty
Section titled “IsDirty”public override bool IsDirty { get; }Returns
System.Boolean
OutputTexture
Section titled “OutputTexture”public override Texture OutputTexture { get; }Returns
UnityEngine.Texture
SourceCamera
Section titled “SourceCamera”public Camera SourceCamera { get; set; }Returns
UnityEngine.Camera
RenderResolution
Section titled “RenderResolution”public Vector2Int RenderResolution { get; set; }Returns
UnityEngine.Vector2Int