> For the complete documentation index, see [llms.txt](https://docs.engagevr.io/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.engagevr.io/developer/afx/afx-graphs/editing-an-afx-graph.md).

# Editing an AFX graph

* To edit a specific AFX graph, select the AFX graph file in the **Project** panel, and then select **Edit graph** in the **Inspector** panel.

<figure><img src="https://2640392766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5yxYHsXtlAaoMUrDWhLm%2Fuploads%2Fgit-blob-5fb157e8c3c4d900f9ebaafe53a3b6ac884949da%2Fafx_edit.png?alt=media" alt=""><figcaption><p>Edit graph button in the Inspector panel</p></figcaption></figure>

{% hint style="info" %}
You can also double click a graph asset in the **Project** panel to edit it.
{% endhint %}

## Editing an AFX graph when in Play Mode

When you enter play mode in the Unity editor, you can access a live view of any AFX graph that's part of the scene. If you make changes to a live graph you will see the effect in real-time.

{% hint style="warning" %}
If you make changes to a live view of an AFX graph, those changes are not saved when you exit play mode.
{% endhint %}

To open an AFX graph in play mode, complete the following steps:

1. If an AFX graph is open, close it.
2. Start play mode in the Unity editor.
3. Select the game object the AFX graph that you want to open is attached to.
4. In the **Inspector** panel, select **Edit Graph**.

When you open an AFX graph as a live view, the word "Clone" is displayed after the graph's name in the top-left corner of the canvas. A blue highlight identifies the active flow, and if you hover the cursor over a variable output port, a tooltip shows the current value.

<figure><img src="https://2640392766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5yxYHsXtlAaoMUrDWhLm%2Fuploads%2Fgit-blob-1ceab87c11cae174e81fd9e6af236717443764d4%2Fafx_live_view.png?alt=media" alt=""><figcaption><p>AFX graph in</p></figcaption></figure>

{% hint style="info" %}
If you want to edit an AFX graph while the Unity editor is in play mode, and have those changes to the AFX graph saved, open the AFX graph from the **Project** panel.
{% endhint %}
