Method in TemporalMarkupHandler
Called repeatedly for each visible character in the line.
This method is a TemporalMarkupHandler object's main opportunity to take action during line display.
int
currentCharacterIndex
The zero-based index of the character being displayed.
TMPro.TMP_Text
text
A TMPro.TMP_Text
object that the line is being displayed in.
System.Threading.CancellationToken
cancellationToken
A cancellation token representing whether the
A task that completes when the TemporalMarkupHandler has completed presenting this character. Dialogue views will wait until this task is complete before displaying the remainder of the line.
Class in Yarn.Unity
Inherits from UnityEngine.MonoBehaviour
A TemporalMarkupHandler is an object that reacts to the delivery of a line of dialogue, and can optionally control the timing of that delivery.
There are a number of cases where a line's delivery needs to have its timing controlled. For example, TypewriterHandler adds a small delay between each character, creating a 'typewriter' effect as each letter appears over time.
Another example of a TemporalMarkupHandler is an in-line event or animation, such as causing a character to play an animation (and waiting for that animation to complete before displaying the rest of the line).
Called after the last call to .
Called immediately before the first character in the line is presented.
Called when the line view receives the line, to prepare for showing the line.
Called repeatedly for each visible character in the line.
The line being presented.
TMPro.TMP_Text
text
A TMPro.TMP_Text
object that the line is being displayed in.
Method in TemporalMarkupHandler
Called when the line view receives the line, to prepare for showing the line.
This method is called before any part of the line is visible, and is an opportunity to set up any part of the TemporalMarkupHandler 's display before the user can see it.
line
The line being presented.
TMPro.TMP_Text
text
A TMPro.TMP_Text
object that the line is being displayed in.