# DialogueReference(YarnProject,string)

Constructor in [DialogueReference](https://docs.yarnspinner.dev/2.3/api/csharp/yarn.unity/yarn.unity.dialoguereference)

## 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](https://docs.yarnspinner.dev/2.3/api/csharp/yarn.unity/yarn.unity.yarnproject) project | Yarn Project asset containing the node. |
| `string` nodeName                                                                                               | Name of the node in the project asset.  |
