Skip to content

ITypewriterProvider

InterfaceTextStudioTextStudio
public interface ITypewriterProvider

Compatibility contract for components that drive reveal and hide sequences through a typewriter-style API.

void ShowText(string text)

Replaces the current content and begins reveal playback.

Parameters

Name Type Description
text System.String Markup to compile and reveal.
void SkipTypewriter()

Completes reveal immediately and dispatches remaining reveal events.

void StartShowing()

Starts reveal playback for the current content.

void StopShowing()

Stops reveal at its current visibility.

void SetTypewriterSpeed(float multiplier)

Changes reveal timing without modifying authored timing assets.

Parameters

Name Type Description
multiplier System.Single Non-negative multiplier, where 1 uses authored timing.
void TriggerRemainingEvents()

Dispatches pending marker and cue events without advancing the reveal animation.

float GetApproximateShowDuration()

Estimates reveal duration using the current content and timing configuration.

Returns

System.Single: Approximate duration in seconds, including configured waits that have known durations.

void StartDisappear()

Starts hide playback for the current content.

void SkipDisappear()

Completes hide playback immediately.

void StopDisappear()

Stops hide playback at its current visibility.

float GetApproximateHideDuration()

Estimates hide duration using the current content and timing configuration.

Returns

System.Single: Approximate duration in seconds.

bool IsShowingText { get; }

Gets whether reveal playback is currently active.

Returns

System.Boolean

bool IsDisappearing { get; }

Gets whether hide playback is currently active.

Returns

System.Boolean

event Action OnTypewriterStarted

Occurs when reveal playback starts or restarts.

Returns

System.Action

event Action OnShowComplete

Occurs after reveal and its final configured delay complete.

Returns

System.Action

event Action OnDisappearComplete

Occurs after hide playback makes the complete text invisible.

Returns

System.Action