Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Class in Yarn.Unity
Inherits from DialoguePresenterBase
A dialogue presenter that listens for user input and sends requests to a DialogueRunner to advance the presentation of the current line, either by asking a dialogue runner to hurry up its delivery, advance to the next line, or cancel the entire dialogue session.
The type of input that this line advancer responds to.
The number of times that a 'hurry up' signal occurs before the line advancer requests that the next line be shown.
If true , repeatedly signalling that the line should be hurried up will cause the line advancer to request that the next line be shown.
Called by a dialogue runner when dialogue ends to remove the input action handlers.
Called by a dialogue runner when dialogue starts to add input action handlers for advancing the line.
Requests that the dialogue runner to instruct all line views to dismiss their content, and then stops the dialogue.
Requests that the line be hurried up.
Requests that the dialogue runner proceeds to the next line.
Called by a dialogue presenter to signal that a line is running.
Called by a dialogue presenter to signal that options are running.
Field in LineAdvancer
The number of times that a 'hurry up' signal occurs before the line advancer requests that the next line be shown.
public int advanceRequestsBeforeCancellingLine = 2;LineAdvancer.multiAdvanceIsCancel: If true , repeatedly signalling that the line should be hurried up will cause the line advancer to request that the next line be shown.
Field in LineAdvancer
If true , repeatedly signalling that the line should be hurried up will cause the line advancer to request that the next line be shown.
public bool multiAdvanceIsCancel = false;LineAdvancer.advanceRequestsBeforeCancellingLine: The number of times that a 'hurry up' signal occurs before the line advancer requests that the next line be shown.
Method in LineAdvancer
Called by a dialogue runner when dialogue ends to remove the input action handlers.
public override YarnTask OnDialogueCompleteAsync()A completed task.
Method in LineAdvancer
Called by a dialogue runner when dialogue starts to add input action handlers for advancing the line.
public override YarnTask OnDialogueStartedAsync()A completed task.
Method in LineAdvancer
Requests that the dialogue runner to instruct all line views to dismiss their content, and then stops the dialogue.
public void RequestDialogueCancellation()Method in LineAdvancer
Requests that the line be hurried up.
public void RequestLineHurryUp()If this method has been called more times for a single line than Yarn.Unity.LineAdvancer.numberOfAdvancesThisLine , this method requests that the dialogue runner proceed to the next line. Otherwise, it requests that the dialogue runner instruct all line views to hurry up their presentation of the current line.
Method in LineAdvancer
Requests that the dialogue runner proceeds to the next line.
public void RequestNextLine()Enumeration Member in InputMode
The line advancer responds to keypresses on the keyboard.
KeyCodesEnumeration Member in InputMode
The line advancer does not respond to any input.
NoneWhen a line advancer's Yarn.Unity.LineAdvancer.UsedInputMode is set to None , call the RequestLineHurryUp() , RequestNextLine() and RequestDialogueCancellation() methods directly from your code to control line advancement.
public sealed class LineAdvancer : DialoguePresenterBase, IActionMarkupHandlerEnumeration Member in InputMode
The line advancer responds to input from the legacy Input Manager .
LegacyInputAxespublic YarnTask OnCharacterWillAppear(int currentCharacterIndex, MarkupParseResult line, CancellationToken cancellationToken)public void OnLineDisplayBegin(MarkupParseResult line, TMP_Text text)public void OnPrepareForLine(MarkupParseResult line, TMP_Text text)Method in LineAdvancer
Called by a dialogue presenter to signal that a line is running.
public override YarnTask RunLineAsync(LocalizedLine line, LineCancellationToken token)The line to present.
token
A that represents whether the dialogue presenter should hurry it its presentation of the line, or stop showing the current line.
A completed task.
Method in LineAdvancer
Called by a dialogue presenter to signal that options are running.
public override YarnTask<DialogueOption?> RunOptionsAsync(DialogueOption[] dialogueOptions, LineCancellationToken cancellationToken)Yarn.Unity.DialogueOption[] dialogueOptions
cancellationToken
A completed task indicating that no option was selected by this view.
Enum in LineAdvancer
Inherits from System.Enum
The type of input that this line advancer responds to.
public enum InputMode
{
InputActions,
KeyCodes,
None,
LegacyInputAxes
}The line advancer responds to Input Actions from the .
The line advancer responds to keypresses on the keyboard.
The line advancer responds to input from the legacy .
The line advancer does not respond to any input.
Enumeration Member in
The line advancer responds to Input Actions from the .
InputActions