# SetNode(string)

Method in [Dialogue](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.dialogue)

## Summary

Prepares the [Dialogue](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.dialogue) that the user intends to start running a node.

```csharp
public void SetNode(string startNode = DefaultStartNodeName)
```

## Remarks

After this method is called, you call [Continue()](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.dialogue/yarn.dialogue.continue) to start executing it.

If [PrepareForLinesHandler](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.dialogue/yarn.dialogue.prepareforlineshandler) has been set, it may be called when this method is invoked, as the Dialogue determines which lines may be delivered during the `startNode` node's execution.

## Parameters

| Name               | Description                                                                                                                                                                              |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `string` startNode | The name of the node that will be run. The node have been loaded by calling [SetProgram(Program)](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.dialogue/yarn.dialogue.setprogram) . |
