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).

TextReplacement

Contains information describing a replacement to make in a string.
public struct TextReplacement

Inherits from System.ValueType

#Fields

#Comment

A descriptive comment explaining why the substitution is necessary.
public string Comment;

Type String

#OriginalText

The string to expect at Start in the original string.
public string OriginalText;

Type String

#ReplacementText

The string to replace OriginalText with at Start.
public string ReplacementText;

Type String

#Start

The position in the original string where the substitution should be made.
public int Start;

Type Int32

#StartLine

The line in the original string where the substitution should be made.
public int StartLine;

Type Int32

#Properties

#OriginalLength

Gets the length of OriginalText.
public int OriginalLength { get }

Type Int32

#ReplacementLength

Gets the length of ReplacementLength.
public int ReplacementLength { get }

Type Int32

Generated from Yarn Spinner for Unity 3.3.