All pages
Powered by GitBook
1 of 1

Loading...

OnCharacterWillAppear(int,MarkupParseResult,CancellationToken)

Method in IActionMarkupHandler

Summary

Called repeatedly for each visible character in the line.

public YarnTask OnCharacterWillAppear(int currentCharacterIndex, MarkupParseResult line, CancellationToken cancellationToken);

Remarks

This method is a ActionMarkupHandler object's main opportunity to take action during line display.

Parameters

Name
Description

int currentCharacterIndex

The zero-based index of the character being displayed.

A task that completes when the has completed presenting this character. Dialogue presenters will wait until this task is complete before displaying the remainder of the line.

text

A TMPro.TMP_Text object that the line is being displayed in.

CancellationToken cancellationToken

A cancellation token representing whether the

line

Returns

ActionMarkupHandler
MarkupParseResult