DialogueReference

Class in Yarn.Unity

Inherits from System.Object

Summary

Stores a reference to a dialogue node in a Yarn Project.

public sealed class DialogueReference

Remarks

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

NameDescription
DialogueReference()Creates an empty dialogue reference.
DialogueReference(YarnProject,string)Creates a dialogue reference with a given project and node name.

Fields

NameDescription
nodeNameThe name of the dialogue node in the project.
projectThe Yarn Project asset containing the dialogue node.

Properties

NameDescription
IsValidGets a value indicating that this reference is valid - that is, the project and node name are set, and the node exists in the project.