Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
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.
LineAdvancer.advanceRequestsBeforeCancellingLine: The number of times that a 'hurry up' signal occurs before the line advancer requests that the next line be shown.
public bool multiAdvanceIsCancel = false;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.
public int advanceRequestsBeforeCancellingLine = 2;public void RequestNextLine()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.public void RequestLineHurryUp()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()Enumeration Member in InputMode
The line advancer responds to input from the legacy Input Manager .
LegacyInputAxesint currentCharacterIndex
line
CancellationToken cancellationToken
public YarnTask OnCharacterWillAppear(int currentCharacterIndex, MarkupParseResult line, CancellationToken cancellationToken)Method in LineAdvancer
Called by a dialogue presenter to signal that a line is running.
public override YarnTask RunLineAsync(LocalizedLine line, LineCancellationToken token)A completed task.
The line to present.
A LineCancellationToken that represents whether the dialogue presenter should hurry it its presentation of the line, or stop showing the current line.
InputActionsEnumeration Member in InputMode
The line advancer responds to keypresses on the keyboard.
KeyCodesline
TMP_Text text
public void OnPrepareForLine(MarkupParseResult line, TMP_Text text)Method in LineAdvancer
Called by a dialogue presenter to signal that options are running.
public override YarnTask<DialogueOption?> RunOptionsAsync(DialogueOption[] dialogueOptions, LineCancellationToken cancellationToken)A completed task indicating that no option was selected by this view.
Enumeration Member in InputMode
The line advancer does not respond to any input.
NoneWhen a line advancer's Yarn.Unity.LineAdvancer.UsedInputMode is set to , call the , and methods directly from your code to control line advancement.
Enum in LineAdvancer
Inherits from System.Enum
The type of input that this line advancer responds to.
public enum InputMode
{
InputActions,
KeyCodes,
None,
LegacyInputAxes
}Method in LineAdvancer
public void OnLineDisplayBegin(MarkupParseResult line, TMP_Text text)Yarn.Unity.DialogueOption[] dialogueOptions
Yarn.Unity.LineCancellationToken cancellationToken
The line advancer responds to Input Actions from the Unity Input System .
The line advancer responds to keypresses on the keyboard.
The line advancer responds to input from the legacy Input Manager .
The line advancer does not respond to any input.
MarkupParseResult line
TMP_Text text
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.
public sealed class LineAdvancer : DialoguePresenterBase, IActionMarkupHandlerRequests 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.