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

DialogueReference

Stores a reference to a dialogue node in a Yarn Project.
public sealed class DialogueReference

Inherits from System.Object

A Dialogue Reference is a reference to a named node inside a given Yarn Project. This allows the editor to warn the user if node doesn't exist in the specified project.

#Constructors

#DialogueReference()

Creates an empty dialogue reference.
public DialogueReference()

#DialogueReference(YarnProject, string)

Creates a dialogue reference with a given project and node name.
public DialogueReference(YarnProject project, string nodeName)

Parameters

  • Yarn Project asset containing the node.
  • nodeNamestring
    Name of the node in the project asset.

#Fields

#nodeName

The name of the dialogue node in the project.
public string? nodeName;

Type String

#project

The Yarn Project asset containing the dialogue node.
public YarnProject? project;

Type YarnProject

#Properties

#IsValid

Gets a value indicating that this reference is valid - that is, the project and node name are set, and the node exists in the project.
public bool IsValid { get }

Type Boolean

Generated from Yarn Spinner for Unity 3.3.