Pardon our dust! Docs for Yarn Spinner for Unity 3.2 and Yarn Spinner for Godot C# are on docs.yarnspinner.dev (the old docs site). Docs for Yarn Spinner for Unity 3.3 (pre-release, out ASAP), Yarn Spinner for Godot GDScript and Yarn Spinner for Unreal Engine (work in progress) are on /docs/ (the new docs site).

RandomLineTagGenerator

A line tag generator that produces line IDs containing a random hexadecimal string.
public class RandomLineTagGenerator : ILineTagGenerator

Inherits from System.Object

Implements Yarn.Compiler.ILineTagGenerator

#Methods

#GenerateLineTag(string, int)

Generates a unique line tag.
public string GenerateLineTag(string node, int lineIndex)

Parameters

  • nodestring
    The node in which the line exist
  • lineIndexint
    The relative line number of the dialogue.

Returns String: The generated line tag.

#PrepareForLines(Dictionary<string, List<ILineTagGenerator.LineTagContext>>, HashSet<string>)

Called by Yarn Spinner before any line generation is
public void PrepareForLines(Dictionary<string, List<ILineTagGenerator.LineTagContext>> LineContexts, HashSet<string> excludedIDs)

Parameters

  • LineContextsDictionary<string, List<Yarn.Compiler.ILineTagGenerator.LineTagContext>>
    The combined information of all nodes and lines
  • excludedIDsHashSet<string>
    A collection of strings that should not be used for generation.

Generated from Yarn Spinner for Unity 3.3.