ITypewriterProvider
public interface ITypewriterProviderCompatibility contract for components that drive reveal and hide sequences through a typewriter-style API.
Methods
Section titled “Methods”
ShowText(string)
Section titled “ShowText(string)”void ShowText(string text)Replaces the current content and begins reveal playback.
Parameters
| Name | Type | Description |
|---|---|---|
text |
System.String | Markup to compile and reveal. |
SkipTypewriter()
Section titled “SkipTypewriter()”void SkipTypewriter()Completes reveal immediately and dispatches remaining reveal events.
StartShowing()
Section titled “StartShowing()”void StartShowing()Starts reveal playback for the current content.
StopShowing()
Section titled “StopShowing()”void StopShowing()Stops reveal at its current visibility.
SetTypewriterSpeed(float)
Section titled “SetTypewriterSpeed(float)”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. |
TriggerRemainingEvents()
Section titled “TriggerRemainingEvents()”void TriggerRemainingEvents()Dispatches pending marker and cue events without advancing the reveal animation.
GetApproximateShowDuration()
Section titled “GetApproximateShowDuration()”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.
StartDisappear()
Section titled “StartDisappear()”void StartDisappear()Starts hide playback for the current content.
SkipDisappear()
Section titled “SkipDisappear()”void SkipDisappear()Completes hide playback immediately.
StopDisappear()
Section titled “StopDisappear()”void StopDisappear()Stops hide playback at its current visibility.
GetApproximateHideDuration()
Section titled “GetApproximateHideDuration()”float GetApproximateHideDuration()Estimates hide duration using the current content and timing configuration.
Returns
System.Single: Approximate duration in seconds.
Properties
Section titled “Properties”
IsShowingText
Section titled “IsShowingText”bool IsShowingText { get; }Gets whether reveal playback is currently active.
Returns
System.Boolean
IsDisappearing
Section titled “IsDisappearing”bool IsDisappearing { get; }Gets whether hide playback is currently active.
Returns
System.Boolean
Events
Section titled “Events”
OnTypewriterStarted
Section titled “OnTypewriterStarted”event Action OnTypewriterStartedOccurs when reveal playback starts or restarts.
Returns
System.Action
OnShowComplete
Section titled “OnShowComplete”event Action OnShowCompleteOccurs after reveal and its final configured delay complete.
Returns
System.Action
OnDisappearComplete
Section titled “OnDisappearComplete”event Action OnDisappearCompleteOccurs after hide playback makes the complete text invisible.
Returns
System.Action