LedImageDataSource
public sealed class LedImageDataSource : LedDataSourceBase, ILedSourceDisplays a static image/logo on the LED board.
Place on the same GameObject as LedBoardController
or a child — it will be auto-discovered.
Methods
Section titled “Methods”
SetTexture(Texture2D)
Section titled “SetTexture(Texture2D)”public void SetTexture(Texture2D texture)Runtime-friendly setter: shows texture, drawing it again also when it is the texture already
shown, so pixels drawn into it at runtime reach the board. Assigning LedImageDataSource.Texture the same texture does not.
Parameters
| Name | Type |
|---|---|
texture | UnityEngine.Texture2D |
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”
LedImageDataSource()
Section titled “LedImageDataSource()”public LedImageDataSource()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
Texture
Section titled “Texture”public Texture2D Texture { get; set; }Returns
UnityEngine.Texture2D