> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.3/api/csharp/yarn.unity/yarn.unity.dialoguereference/yarn.unity.dialoguereference..ctor-2.md).

# DialogueReference(YarnProject,string)

Constructor in [DialogueReference](/2.3/api/csharp/yarn.unity/yarn.unity.dialoguereference.md)

## Summary

Creates a dialogue reference with a given project and node name.

```csharp
public DialogueReference(YarnProject project, string nodeName)
```

## Parameters

| Name                                                                                   | Description                             |
| -------------------------------------------------------------------------------------- | --------------------------------------- |
| [Yarn.Unity.YarnProject](/2.3/api/csharp/yarn.unity/yarn.unity.yarnproject.md) project | Yarn Project asset containing the node. |
| `string` nodeName                                                                      | Name of the node in the project asset.  |
