OnCharacterWillAppear(int,MarkupParseResult,CancellationToken)
Last updated
Was this helpful?
Method in IActionMarkupHandler
Called repeatedly for each visible character in the line.
public YarnTask OnCharacterWillAppear(int currentCharacterIndex, MarkupParseResult line, CancellationToken cancellationToken);This method is a ActionMarkupHandler object's main opportunity to take action during line display.
int currentCharacterIndex
The zero-based index of the character being displayed.
text
A TMPro.TMP_Text object that the line is being displayed in.
CancellationToken cancellationToken
A cancellation token representing whether the
MarkupParseResult line
A task that completes when the ActionMarkupHandler has completed presenting this character. Dialogue presenters will wait until this task is complete before displaying the remainder of the line.
Last updated
Was this helpful?
Was this helpful?
