Skip to content

ITextStudioPlayback

InterfaceTextStudioTextStudio
public interface ITextStudioPlayback

Focused reveal and hide playback contract shared by every Text Studio host.

void ShowText(string markup)

Replaces the content and begins reveal playback using the current settings.

Parameters

Name Type Description
markup System.String Markup to compile and reveal.
void ShowTextInstant(string markup)

Replaces the content and displays it completely without advancing a reveal clock.

Parameters

Name Type Description
markup System.String Markup to compile and display.
void StartReveal()

Starts reveal playback for the current compiled content.

void PauseReveal()

Pauses reveal playback while retaining its current position.

void ResumeReveal()

Resumes reveal playback from its paused position.

void SkipCurrentWait()

Requests cooperative cancellation of the active wait and resumes reveal. Custom non-skippable action coroutines may continue running.

void SkipReveal()

Completes reveal immediately, including remaining reveal events.

void StopReveal()

Stops reveal at its current visibility without completing it.

void StartDisappear()

Starts hide playback for the current content.

void SkipDisappear()

Completes hide playback immediately.

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.
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.
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.

float RevealProgress { get; }

Gets normalized reveal progress from 0 (hidden) to 1 (fully revealed).

Returns

System.Single

int RevealedGlyphCount { get; }

Gets the number of semantic glyphs currently revealed.

Returns

System.Int32

int TotalGlyphCount { get; }

Gets the number of visible semantic glyphs in the compiled content.

Returns

System.Int32

bool IsRevealing { get; }

Gets whether reveal playback is currently advancing.

Returns

System.Boolean

bool IsRevealPaused { get; }

Gets whether reveal playback is paused without being stopped.

Returns

System.Boolean

bool IsWaitingForAction { get; }

Gets whether reveal is suspended while an action coroutine is active.

Returns

System.Boolean

bool IsDisappearing { get; }

Gets whether hide playback is currently advancing.

Returns

System.Boolean

event Action OnShowComplete

Occurs after the final reveal delay has completed and the text is fully shown.

Returns

System.Action

event Action OnDisappearComplete

Occurs after hide playback has made the complete text invisible.

Returns

System.Action

event Action OnTypewriterStarted

Occurs when reveal playback starts or restarts.

Returns

System.Action