ActionMarkupHandler

Class in Yarn.Unity

Inherits from UnityEngine.MonoBehaviour

Summary

This is an abstract monobehaviour that conforms to the IActionMarkupHandler interface.

public abstract class ActionMarkupHandler : MonoBehaviour, IActionMarkupHandler

Remarks

Intended to be used in situations where you require a monobehaviour version of the interfaces. This is used by LinePresenter to have a list of handlers that can be connected up via the inspector.

Methods

NameDescription
OnCharacterWillAppear(int,MarkupParseResult,CancellationToken)Called repeatedly for each visible character in the line.
OnLineDisplayBegin(MarkupParseResult,TMP_Text)Called immediately before the first character in the line is presented.
OnLineDisplayComplete()Called after the last call to PresentCharacter(int, TMP_Text, CancellationToken) .
OnLineWillDismiss()Called right before the line will dismiss itself.
OnPrepareForLine(MarkupParseResult,TMP_Text)Called when the line view receives the line, to prepare for showing the line.