TextStudioAnimatedLabel
[UxmlElement]public class TextStudioAnimatedLabel : Label, ITextStudioContent, ITextStudioPlayback, ITextStudioVisibilityConvenience UI Toolkit label for Text Studio markup. Runtime behavior is delegated to TextStudio.TextStudioUITKBinding so version-specific support remains shared with labels augmented through extension methods.
Constructors
Section titled “Constructors”
TextStudioAnimatedLabel()
Section titled “TextStudioAnimatedLabel()”public TextStudioAnimatedLabel()Methods
Section titled “Methods”
SetAnimatedText(string)
Section titled “SetAnimatedText(string)”public void SetAnimatedText(string markupText)Replaces label markup and begins reveal according to the label’s current typewriter settings.
Parameters
| Name | Type |
|---|---|
markupText |
System.String |
SetText(string)
Section titled “SetText(string)”public void SetText(string markupText)Replaces the current markup and applies the change immediately.
Parameters
| Name | Type |
|---|---|
markupText |
System.String |
SetTextDeferred(string)
Section titled “SetTextDeferred(string)”public void SetTextDeferred(string markupText)Replaces pending markup without compiling it until the next automatic or host update. Repeated calls before that update compile only the newest value.
Parameters
| Name | Type |
|---|---|
markupText |
System.String |
AppendText(string)
Section titled “AppendText(string)”public void AppendText(string markupText)Appends markup and recompiles the combined content.
Parameters
| Name | Type |
|---|---|
markupText |
System.String |
ClearText()
Section titled “ClearText()”public void ClearText()Clears authored content, compiled state, and visible output.
RegisterExtensionTagProcessor(ITextStudioExtensionTagProcessor)
Section titled “RegisterExtensionTagProcessor(ITextStudioExtensionTagProcessor)”public void RegisterExtensionTagProcessor(ITextStudioExtensionTagProcessor processor)Registers a component-local processor for plan and reveal extension-tag callbacks.
Parameters
| Name | Type |
|---|---|
processor |
TextStudio.ITextStudioExtensionTagProcessor |
UnregisterExtensionTagProcessor(ITextStudioExtensionTagProcessor)
Section titled “UnregisterExtensionTagProcessor(ITextStudioExtensionTagProcessor)”public void UnregisterExtensionTagProcessor(ITextStudioExtensionTagProcessor processor)Stops dispatching extension-tag callbacks to a component-local processor.
Parameters
| Name | Type |
|---|---|
processor |
TextStudio.ITextStudioExtensionTagProcessor |
ShowText(string)
Section titled “ShowText(string)”public void ShowText(string markupText)Replaces the content and begins reveal playback using the current settings.
Parameters
| Name | Type |
|---|---|
markupText |
System.String |
ShowTextInstant(string)
Section titled “ShowTextInstant(string)”public void ShowTextInstant(string markupText)Replaces the content and displays it completely without advancing a reveal clock.
Parameters
| Name | Type |
|---|---|
markupText |
System.String |
StartReveal()
Section titled “StartReveal()”public void StartReveal()Starts reveal playback for the current compiled content.
SkipReveal()
Section titled “SkipReveal()”public void SkipReveal()Completes reveal immediately, including remaining reveal events.
StopReveal()
Section titled “StopReveal()”public void StopReveal()Stops reveal at its current visibility without completing it.
TriggerRemainingEvents()
Section titled “TriggerRemainingEvents()”public void TriggerRemainingEvents()Dispatches pending marker and cue events without advancing the reveal animation.
AdvanceOrSkip()
Section titled “AdvanceOrSkip()”public bool AdvanceOrSkip()Advances a paused or waiting reveal when possible; otherwise completes the active reveal.
Returns
System.Boolean: true when the call changed playback state.
StartDisappear()
Section titled “StartDisappear()”public void StartDisappear()Starts hide playback for the current content.
SkipDisappear()
Section titled “SkipDisappear()”public void SkipDisappear()Completes hide playback immediately.
StopDisappear()
Section titled “StopDisappear()”public void StopDisappear()Stops hide playback at its current visibility.
GetApproximateHideDuration()
Section titled “GetApproximateHideDuration()”public float GetApproximateHideDuration()Estimates hide duration using the current content and timing configuration.
Returns
System.Single: Approximate duration in seconds.
SetRevealSpeed(float)
Section titled “SetRevealSpeed(float)”public void SetRevealSpeed(float multiplier)Changes the playback-rate multiplier used by subsequent reveal updates.
Parameters
| Name | Type | Description |
|---|---|---|
multiplier |
System.Single | Non-negative speed multiplier, where 1 uses authored timing. |
PauseReveal()
Section titled “PauseReveal()”public void PauseReveal()Pauses reveal playback while retaining its current position.
ResumeReveal()
Section titled “ResumeReveal()”public void ResumeReveal()Resumes reveal playback from its paused position.
SkipCurrentWait()
Section titled “SkipCurrentWait()”public void SkipCurrentWait()Requests cooperative cancellation of the active wait and resumes reveal. Custom non-skippable action coroutines may continue running.
SetRevealProgress(float)
Section titled “SetRevealProgress(float)”public void SetRevealProgress(float progress)Sets reveal to an explicit normalized position without changing authored content.
Parameters
| Name | Type | Description |
|---|---|---|
progress |
System.Single | Requested progress, clamped to the 0 to 1 range. |
SetGlyphVisibility(int, bool, bool)
Section titled “SetGlyphVisibility(int, bool, bool)”public bool SetGlyphVisibility(int glyphIndex, bool visible, bool playTransition = true)Overrides visibility for one visible glyph.
Parameters
| Name | Type | Description |
|---|---|---|
glyphIndex |
System.Int32 | Zero-based visible-glyph index in the current compiled plan. |
visible |
System.Boolean | Whether the glyph should be visible. |
playTransition |
System.Boolean | Whether configured transitions should be used. |
Returns
System.Boolean: false when glyphIndex is outside the current plan.
SetWordVisibility(int, bool, bool)
Section titled “SetWordVisibility(int, bool, bool)”public bool SetWordVisibility(int wordIndex, bool visible, bool playTransition = true)Overrides visibility for one semantic word.
Parameters
| Name | Type | Description |
|---|---|---|
wordIndex |
System.Int32 | Zero-based word index in the current compiled plan. |
visible |
System.Boolean | Whether glyphs in the word should be visible. |
playTransition |
System.Boolean | Whether configured transitions should be used. |
Returns
System.Boolean: false when wordIndex is outside the current plan.
SetTextVisibility(bool, bool)
Section titled “SetTextVisibility(bool, bool)”public bool SetTextVisibility(bool visible, bool playTransition = true)Overrides visibility for the complete text without modifying its markup.
Parameters
| Name | Type | Description |
|---|---|---|
visible |
System.Boolean | Whether all glyphs should be visible. |
playTransition |
System.Boolean | Whether configured reveal or hide transitions should be used. |
Returns
System.Boolean: true when the override was accepted.
ClearGlyphVisibilityOverride(int)
Section titled “ClearGlyphVisibilityOverride(int)”public bool ClearGlyphVisibilityOverride(int glyphIndex)Restores authored visibility for one glyph.
Parameters
| Name | Type | Description |
|---|---|---|
glyphIndex |
System.Int32 | Zero-based visible-glyph index in the current compiled plan. |
Returns
System.Boolean: true when an existing override was removed.
ClearVisibilityOverrides()
Section titled “ClearVisibilityOverrides()”public bool ClearVisibilityOverrides()Restores authored visibility for every glyph.
Returns
System.Boolean: true when at least one override was removed.
ConfigureEffectFamilies(bool, bool, bool)
Section titled “ConfigureEffectFamilies(bool, bool, bool)”public void ConfigureEffectFamilies(bool reveal, bool active, bool hide)Enables or disables evaluation of reveal, active, and hide effect families.
Parameters
| Name | Type |
|---|---|
reveal |
System.Boolean |
active |
System.Boolean |
hide |
System.Boolean |
RestartEffects()
Section titled “RestartEffects()”public void RestartEffects()Resets effect-local clocks and state while preserving text and reveal progress.
RefreshEffectBindings()
Section titled “RefreshEffectBindings()”public void RefreshEffectBindings()Re-resolves effect definitions and parameters after registry or asset changes.
SetRevealLoop(bool, float)
Section titled “SetRevealLoop(bool, float)”public void SetRevealLoop(bool loop, float delay = 0.75)Controls whether reveal restarts after completion and configures the delay before restarting.
Parameters
| Name | Type |
|---|---|
loop |
System.Boolean |
delay |
System.Single |
UpdateFromHost(float)
Section titled “UpdateFromHost(float)”public void UpdateFromHost(float deltaTime)Advances a manual-update label by a non-negative number of seconds.
Parameters
| Name | Type |
|---|---|
deltaTime |
System.Single |
ConfigureLinearPlacement()
Section titled “ConfigureLinearPlacement()”public void ConfigureLinearPlacement()Selects source-linear placement without changing the current orientation policy.
ConfigureArcPlacement(float, float, float, PathSpacing, float, bool, float)
Section titled “ConfigureArcPlacement(float, float, float, PathSpacing, float, bool, float)”public void ConfigureArcPlacement(float radius, float arcAngle, float startAngle = 0, PathSpacing spacing = PathSpacing.Even, float fill = 1, bool reverse = false, float radiusChange = 0)Configures planar arc placement in local units and degrees without changing orientation.
Parameters
| Name | Type |
|---|---|
radius |
System.Single |
arcAngle |
System.Single |
startAngle |
System.Single |
spacing |
TextStudio.PathSpacing |
fill |
System.Single |
reverse |
System.Boolean |
radiusChange |
System.Single |
ConfigureWavePlacement(float, float, float, float)
Section titled “ConfigureWavePlacement(float, float, float, float)”public void ConfigureWavePlacement(float amplitude, float frequency, float speed, float phase = 0)Configures animated planar wave placement in local units and cycles per second.
Parameters
| Name | Type |
|---|---|
amplitude |
System.Single |
frequency |
System.Single |
speed |
System.Single |
phase |
System.Single |
ConfigureCirclePlacement(float, float, PathSpacing, bool, float)
Section titled “ConfigureCirclePlacement(float, float, PathSpacing, bool, float)”public void ConfigureCirclePlacement(float radius, float startAngle = 0, PathSpacing spacing = PathSpacing.Even, bool reverse = false, float radiusChange = 0)Configures circular placement in local units and degrees without changing orientation.
Parameters
| Name | Type |
|---|---|
radius |
System.Single |
startAngle |
System.Single |
spacing |
TextStudio.PathSpacing |
reverse |
System.Boolean |
radiusChange |
System.Single |
ConfigureGridPlacement(int, GridCellSizing, Vector2, Vector2, GridFlow, bool, bool)
Section titled “ConfigureGridPlacement(int, GridCellSizing, Vector2, Vector2, GridFlow, bool, bool)”public void ConfigureGridPlacement(int columns, GridCellSizing sizing = GridCellSizing.Auto, Vector2 cellSize = default, Vector2 gap = default, GridFlow flow = GridFlow.RowsFirst, bool reverse = false, bool respectSourceLines = false)Configures row- or column-major grid placement with explicit or automatic cell sizing.
Parameters
| Name | Type |
|---|---|
columns |
System.Int32 |
sizing |
TextStudio.GridCellSizing |
cellSize |
UnityEngine.Vector2 |
gap |
UnityEngine.Vector2 |
flow |
TextStudio.GridFlow |
reverse |
System.Boolean |
respectSourceLines |
System.Boolean |
SetArcStartAngle(float)
Section titled “SetArcStartAngle(float)”public void SetArcStartAngle(float startAngle)Changes the arc’s start angle in degrees and refreshes placement.
Parameters
| Name | Type |
|---|---|
startAngle |
System.Single |
SetCircleStartAngle(float)
Section titled “SetCircleStartAngle(float)”public void SetCircleStartAngle(float startAngle)Changes the circle’s start angle in degrees and refreshes placement.
Parameters
| Name | Type |
|---|---|
startAngle |
System.Single |
SetPlacementOrientation(TextStudioPlacementOrientation, Vector3)
Section titled “SetPlacementOrientation(TextStudioPlacementOrientation, Vector3)”public void SetPlacementOrientation(TextStudioPlacementOrientation orientation, Vector3 fineRotation = default)Sets glyph orientation along the selected placement plus an optional local Euler rotation in degrees.
Parameters
| Name | Type |
|---|---|
orientation |
TextStudio.TextStudioPlacementOrientation |
fineRotation |
UnityEngine.Vector3 |
Properties
Section titled “Properties”
Content
Section titled “Content”public ITextStudioContent Content { get; }Focused content view for integrations that do not control playback.
Returns
TextStudio.ITextStudioContent
Playback
Section titled “Playback”public ITextStudioPlayback Playback { get; }Focused reveal and hide playback view.
Returns
TextStudio.ITextStudioPlayback
Visibility
Section titled “Visibility”public ITextStudioVisibility Visibility { get; }Focused runtime visibility view.
Returns
TextStudio.ITextStudioVisibility
Markup
Section titled “Markup”[UxmlAttribute("markup")][CreateProperty]public string Markup { get; set; }Gets the authored markup, including Text Studio tags.
Returns
System.String
public string Text { get; }Gets the visible plain-text content after markup processing.
Returns
System.String
ResolvedText
Section titled “ResolvedText”public string ResolvedText { get; }Returns
System.String
DisplayText
Section titled “DisplayText”public string DisplayText { get; }Returns
System.String
public TextStudioPlanView Plan { get; }Gets a transient, allocation-free view of the compiled semantic plan. Do not retain the view after the current callback or frame.
Returns
TextStudio.TextStudioPlanView
Profile
Section titled “Profile”[UxmlAttribute("profile")][CreateProperty]public TextStudioProfile Profile { get; set; }Returns
TextStudio.TextStudioProfile
MarkupSyntaxOverride
Section titled “MarkupSyntaxOverride”[UxmlAttribute("markup-syntax")][CreateProperty]public TextStudioMarkupSyntax MarkupSyntaxOverride { get; set; }Returns
TextStudio.TextStudioMarkupSyntax
ResolvedAuthoringProfile
Section titled “ResolvedAuthoringProfile”public TextStudioAuthoringProfile ResolvedAuthoringProfile { get; }Gets the effective authoring profile after label and project settings are resolved.
Returns
TextStudio.TextStudioAuthoringProfile
UpdateMode
Section titled “UpdateMode”[UxmlAttribute("update-mode")][CreateProperty]public TextStudioUITKUpdateMode UpdateMode { get; set; }Returns
TextStudio.TextStudioUITKUpdateMode
PlayOnAttach
Section titled “PlayOnAttach”[UxmlAttribute("play-on-attach")][CreateProperty]public bool PlayOnAttach { get; set; }Returns
System.Boolean
RevealMode
Section titled “RevealMode”[UxmlAttribute("reveal-mode")][CreateProperty]public RevealMode RevealMode { get; set; }Returns
TextStudio.RevealMode
SpeedMultiplier
Section titled “SpeedMultiplier”[UxmlAttribute("speed-multiplier")][CreateProperty]public float SpeedMultiplier { get; set; }Returns
System.Single
RevealProgress
Section titled “RevealProgress”public float RevealProgress { get; }Gets normalized reveal progress from 0 (hidden) to 1 (fully revealed).
Returns
System.Single
RevealedCount
Section titled “RevealedCount”public int RevealedCount { get; }Returns
System.Int32
RevealedGlyphCount
Section titled “RevealedGlyphCount”public int RevealedGlyphCount { get; }Gets the number of semantic glyphs currently revealed.
Returns
System.Int32
TotalGlyphCount
Section titled “TotalGlyphCount”public int TotalGlyphCount { get; }Gets the number of visible semantic glyphs in the compiled content.
Returns
System.Int32
WordCount
Section titled “WordCount”public int WordCount { get; }Returns
System.Int32
HasVisibilityOverrides
Section titled “HasVisibilityOverrides”public bool HasVisibilityOverrides { get; }Gets whether any runtime visibility override currently differs from authored visibility.
Returns
System.Boolean
IsRevealing
Section titled “IsRevealing”public bool IsRevealing { get; }Gets whether reveal playback is currently advancing.
Returns
System.Boolean
IsRevealPaused
Section titled “IsRevealPaused”public bool IsRevealPaused { get; }Gets whether reveal playback is paused without being stopped.
Returns
System.Boolean
IsWaitingForAction
Section titled “IsWaitingForAction”public bool IsWaitingForAction { get; }Whether reveal is paused while an action is still executing.
Returns
System.Boolean
IsDisappearing
Section titled “IsDisappearing”public bool IsDisappearing { get; }Gets whether hide playback is currently advancing.
Returns
System.Boolean
LoopReveal
Section titled “LoopReveal”[UxmlAttribute("loop-reveal")][CreateProperty]public bool LoopReveal { get; set; }Returns
System.Boolean
LoopRevealDelay
Section titled “LoopRevealDelay”public float LoopRevealDelay { get; set; }Returns
System.Single
RevealAppearanceDuration
Section titled “RevealAppearanceDuration”public float RevealAppearanceDuration { get; set; }Returns
System.Single
RevealDisappearanceDuration
Section titled “RevealDisappearanceDuration”public float RevealDisappearanceDuration { get; set; }Returns
System.Single
RevealEffectsEnabled
Section titled “RevealEffectsEnabled”public bool RevealEffectsEnabled { get; set; }Returns
System.Boolean
ActiveEffectsEnabled
Section titled “ActiveEffectsEnabled”public bool ActiveEffectsEnabled { get; set; }Returns
System.Boolean
HideEffectsEnabled
Section titled “HideEffectsEnabled”public bool HideEffectsEnabled { get; set; }Returns
System.Boolean
Timings
Section titled “Timings”public TypingTimingsBase Timings { get; set; }Returns
TextStudio.TypingTimingsBase
BuiltInTimingsPreset
Section titled “BuiltInTimingsPreset”public RevealTimingsPreset BuiltInTimingsPreset { get; set; }Returns
TextStudio.RevealTimingsPreset
WaitAfterFinalReveal
Section titled “WaitAfterFinalReveal”public bool WaitAfterFinalReveal { get; set; }Returns
System.Boolean
EnableInEditMode
Section titled “EnableInEditMode”public bool EnableInEditMode { get; set; }Returns
System.Boolean
FeatureSet
Section titled “FeatureSet”public TextStudioUITKFeatureSet FeatureSet { get; }Returns
TextStudio.TextStudioUITKFeatureSet
TextGeneratorPreference
Section titled “TextGeneratorPreference”public TextStudioUITKTextGeneratorPreference TextGeneratorPreference { get; set; }Returns
TextStudio.TextStudioUITKTextGeneratorPreference
PlacementMode
Section titled “PlacementMode”public PlacementMode PlacementMode { get; }Returns
TextStudio.PlacementMode
ArcStartAngle
Section titled “ArcStartAngle”public float ArcStartAngle { get; }Returns
System.Single
CircleStartAngle
Section titled “CircleStartAngle”public float CircleStartAngle { get; }Returns
System.Single
GridColumns
Section titled “GridColumns”public int GridColumns { get; }Returns
System.Int32
GridCellSizing
Section titled “GridCellSizing”public GridCellSizing GridCellSizing { get; }Returns
TextStudio.GridCellSizing
GridCellSize
Section titled “GridCellSize”public Vector2 GridCellSize { get; }Returns
UnityEngine.Vector2
GridGap
Section titled “GridGap”public Vector2 GridGap { get; }Returns
UnityEngine.Vector2
GridFlow
Section titled “GridFlow”public GridFlow GridFlow { get; }Returns
TextStudio.GridFlow
Events
Section titled “Events”
OnTextSet
Section titled “OnTextSet”public event Action<string> OnTextSetOccurs after markup is replaced and accepted by the runtime.
Returns
System.Action{System.String}
OnGlyphRevealed
Section titled “OnGlyphRevealed”public event Action<int, char> OnGlyphRevealedOccurs when a visible glyph crosses its reveal boundary.
Returns
System.Action{System.Int32,System.Char}
OnTypewriterStarted
Section titled “OnTypewriterStarted”public event Action OnTypewriterStartedOccurs when reveal playback starts or restarts.
Returns
System.Action
OnTextUnitRevealed
Section titled “OnTextUnitRevealed”public event Action<int, string> OnTextUnitRevealedOccurs when a semantic text unit becomes visible.
Returns
System.Action{System.Int32,System.String}
OnMarkerReached
Section titled “OnMarkerReached”public event Action<string, string[]> OnMarkerReachedOccurs when reveal reaches an authored marker.
Returns
System.Action{System.String,System.String[]}
OnExtensionTagsChanged
Section titled “OnExtensionTagsChanged”public event Action<TextStudioPlanView> OnExtensionTagsChangedOccurs after compilation changes the set of extension tags.
Returns
System.Action{TextStudio.TextStudioPlanView}
OnExtensionTagReached
Section titled “OnExtensionTagReached”public event Action<TextStudioExtensionTag> OnExtensionTagReachedOccurs when reveal reaches an extension tag configured for reveal dispatch.
Returns
System.Action{TextStudio.TextStudioExtensionTag}
OnShowComplete
Section titled “OnShowComplete”public event Action OnShowCompleteOccurs after the final reveal delay has completed and the text is fully shown.
Returns
System.Action
OnDisappearComplete
Section titled “OnDisappearComplete”public event Action OnDisappearCompleteOccurs after hide playback has made the complete text invisible.
Returns
System.Action