Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Field in LocalizedLine
A LocalizedLine object that represents content not being found.
public static readonly LocalizedLine InvalidLine = new LocalizedLine{Asset = null, Metadata = System.Array.Empty<string>(), RawText = "!! ERROR: Missing line!", Substitutions = System.Array.Empty<string>(), TextID = "<missing>", Text = new Markup.MarkupParseResult("!! ERROR: Missing line!", new System.Collections.Generic.List<Markup.MarkupAttribute>())};Field in LocalizedLine
Any metadata associated with this line.
public string[] Metadata = System.Array.Empty<string>();Field in LocalizedLine
The object that created this line. Most of the time will be the DialogueRunner that passed the presenter the line.
public object? Source;This exists for situations where you need the dialogue runner (or your custom equivalent) to send back messages. In particular this is used by the VoiceOverPresenter to get a reference to the dialogue runner to advance lines after playback is finished without needing a specific reference. Allowing the presenter to be reused across multiple runners.
Field in LocalizedLine
DialogueLine's inline expression's substitution
public string[] Substitutions = System.Array.Empty<string>();Property in LocalizedLine
The name of the character, if present.
public string? CharacterName { get; }This value will be null if the line does not have a character name.
Property in LocalizedLine
The underlying MarkupParseResult for this line.
public Markup.MarkupParseResult Text { get; set; }Property in LocalizedLine
The underlying MarkupParseResult for this line, with any character attribute removed.
public Markup.MarkupParseResult TextWithoutCharacterName { get; }If the line has no character attribute, this method returns the same value as Text .
Class in Yarn.Unity
Inherits from System.Object
Represents a line, ready to be presented to the user in the localisation they have specified.
public class LocalizedLineThe asset associated with this line, if any.
A LocalizedLine object that represents content not being found.
Any metadata associated with this line.
DialogueLine's text
The object that created this line. Most of the time will be the DialogueRunner that passed the presenter the line.
DialogueLine's inline expression's substitution
DialogueLine's ID
The name of the character, if present.
The underlying MarkupParseResult for this line.
The underlying for this line, with any character attribute removed.
Field in
The asset associated with this line, if any.
public Object? Asset;