> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kodeflowstudios.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change Next Bind

You can easily change the dialogue progression bind using two methods.

<Tabs>
  <Tab title="YAML" icon="code">
    ## BindNextEvent(InputAction)

    The first way you can change your next dialogue bind with is by using the [BindNextEvent(InputAction)](/parley/reference/scripting/yaml-core/parley-yaml#bindnextevent-inputaction) method, it takes an [InputAction](https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.InputAction.html) and binds the `OnNextDialogue` event to its `performed` event.

    ```csharp theme={null}
    //set in the unity inspector or init with bind path
    public InputAction action;

    ParleyYaml parleyYaml;

    void Start()
    {
    	parleyYaml = new ParleyYaml("Example", "HelloParley");
    	parleyYaml.BindNextEvent(action);
    }
    ```
  </Tab>

  <Tab title="Graph" icon="chart-diagram">
    ## BindNextEvent(InputAction)

    The first way you can change your next dialogue bind with is by using the [BindNextEvent(InputAction)](/parley/reference/scripting/graph-core/parley-graph#bindnextevent-inputaction) method, it takes an [InputAction](https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.InputAction.html) and binds the `OnNextDialogue` event to its `performed` event.

    ```csharp theme={null}
    //set in the unity inspector or init with bind path
    public InputAction action;

    ParleyGraph parleyGraph;

    void Start()
    {
    	parleyGraph = new ParleyGraph("Example", "HelloParley");
    	parleyGraph.BindNextEvent(action);
    }
    ```
  </Tab>
</Tabs>

## Input Actions Asset

Create an [Input Actions Asset](https://docs.unity3d.com/Packages/com.unity.inputsystem@1.15/manual/ActionAssets.html) in your project and set it as the project default (if you don't already have one), then add an input action called "NextDialogue" or "NextDialog" and set it to the bind(s) you want.
![Input Actions Asset ](https://cortado-bucket.lon1.cdn.digitaloceanspaces.com/dohttps://cortado-bucket.lon1.cdn.digitaloceanspaces.com/docs/resources/images/Parley/parley_input_actions.png)
