TextSource
public sealed class TextSource : ITextStyledSource, ILedSource, ITextScrollOffsetSource, ITextBlinkSourceSource adapter for text content. Renders text into a small RenderTexture and caches it when the content hasn’t changed. Supports a built-in 5x7 bitmap font and a TMP-backed font-texture renderer for arbitrary font assets and multilingual text.
Properties
Section titled “Properties”
SourceType
Section titled “SourceType”public LedSourceType SourceType { get; }No description is available for this member.
Returns
LEDStudio.LedSourceType — No return description is available.
IsReady
Section titled “IsReady”public bool IsReady { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
IsDirty
Section titled “IsDirty”public bool IsDirty { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
OutputTexture
Section titled “OutputTexture”public Texture OutputTexture { get; }No description is available for this member.
Returns
UnityEngine.Texture — No return description is available.
RequiresTimeUpdates
Section titled “RequiresTimeUpdates”public bool RequiresTimeUpdates { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
AutoScroll
Section titled “AutoScroll”public bool AutoScroll { get; set; }Automatically scroll text that overflows the board width.
Returns
System.Boolean — No return description is available.
AlwaysScroll
Section titled “AlwaysScroll”public bool AlwaysScroll { get; set; }Scroll even when text fits within the board width.
Returns
System.Boolean — No return description is available.
SeamlessWrap
Section titled “SeamlessWrap”public bool SeamlessWrap { get; set; }No description is available for this member.
Returns
System.Boolean — No return description is available.
SeamlessWrapPaddingPixels
Section titled “SeamlessWrapPaddingPixels”public float SeamlessWrapPaddingPixels { get; set; }No description is available for this member.
Returns
System.Single — No return description is available.
SeamlessWrapDistribution
Section titled “SeamlessWrapDistribution”public LedSeamlessWrapDistribution SeamlessWrapDistribution { get; set; }No description is available for this member.
Returns
LEDStudio.LedSeamlessWrapDistribution — No return description is available.
ScrollAxis
Section titled “ScrollAxis”public LedTextScrollAxis ScrollAxis { get; set; }No description is available for this member.
Returns
LEDStudio.LedTextScrollAxis — No return description is available.
ScrollSpeed
Section titled “ScrollSpeed”public float ScrollSpeed { get; set; }Scroll speed in pixels per second.
Returns
System.Single — No return description is available.
ScrollOffsetPercent
Section titled “ScrollOffsetPercent”public float ScrollOffsetPercent { get; set; }No description is available for this member.
Returns
System.Single — No return description is available.
BlinkSettings
Section titled “BlinkSettings”public LedTextBlinkSettings BlinkSettings { get; set; }No description is available for this member.
Returns
LEDStudio.LedTextBlinkSettings — No return description is available.
Constructors
Section titled “Constructors”
TextSource(string, Color, LedTextSettings, TMP_FontAsset, Color)
Section titled “TextSource(string, Color, LedTextSettings, TMP_FontAsset, Color)”public TextSource(string text, Color color, LedTextSettings textSettings, TMP_FontAsset fontAsset = null, Color backgroundColor = default)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
text |
System.String | |
color |
UnityEngine.Color | |
textSettings |
LEDStudio.LedTextSettings | |
fontAsset |
TMPro.TMP_FontAsset | |
backgroundColor |
UnityEngine.Color |
Methods
Section titled “Methods”
SetRenderBackend(ILedTextRenderBackend)
Section titled “SetRenderBackend(ILedTextRenderBackend)”public void SetRenderBackend(ILedTextRenderBackend renderBackend)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
renderBackend |
LEDStudio.ILedTextRenderBackend | |
SetTreatTextAsMarkup(bool)
Section titled “SetTreatTextAsMarkup(bool)”public void SetTreatTextAsMarkup(bool treatAsMarkup)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
treatAsMarkup |
System.Boolean | |
SetTextSettings(LedTextSettings, TMP_FontAsset)
Section titled “SetTextSettings(LedTextSettings, TMP_FontAsset)”public void SetTextSettings(LedTextSettings settings, TMP_FontAsset fontAsset)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
settings |
LEDStudio.LedTextSettings | |
fontAsset |
TMPro.TMP_FontAsset | |
SetText(string)
Section titled “SetText(string)”public void SetText(string text)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
text |
System.String | |
SetColor(Color)
Section titled “SetColor(Color)”public void SetColor(Color color)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
color |
UnityEngine.Color | |
SetBackgroundColor(Color)
Section titled “SetBackgroundColor(Color)”public void SetBackgroundColor(Color backgroundColor)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
backgroundColor |
UnityEngine.Color | |
Prepare(Vector2Int)
Section titled “Prepare(Vector2Int)”public void Prepare(Vector2Int targetResolution)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
targetResolution |
UnityEngine.Vector2Int | |
UpdateSource(in TimeStep)
Section titled “UpdateSource(in TimeStep)”public void UpdateSource(in TimeStep step)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
step |
ImpossibleRobert.Common.Timing.TimeStep | |
GetGlyphPublic(char)
Section titled “GetGlyphPublic(char)”public static ulong GetGlyphPublic(char c)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
c |
System.Char |
Returns
System.UInt64 — No return description is available.
MarkClean()
Section titled “MarkClean()”public void MarkClean()No description is available for this member.
GetDirtyRects(List)
Section titled “GetDirtyRects(List)”public void GetDirtyRects(List<RectInt> outRects)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
outRects |
System.Collections.Generic.List{UnityEngine.RectInt} | |
TryGetContentBounds(out RectInt)
Section titled “TryGetContentBounds(out RectInt)”public bool TryGetContentBounds(out RectInt bounds)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
bounds |
UnityEngine.RectInt |
Returns
System.Boolean — No return description is available.
Release()
Section titled “Release()”public void Release()No description is available for this member.