# Adding an AFX graph to a game object

To add an AFX to a game object, such as an IFX, complete the following steps:

1. In the **Hierarchy** panel, select the game object.
2. In the **Inspector** panel, select **Add Component**.
3. In the list of components, select **AFX**, and then select **AFX Engine**.

{% hint style="info" %}
When you add an AFX Engine component, an AFX Object Reference Manager component is added automatically.
{% endhint %}

4. Drag the AFX graph file from the **Project** panel to the **Graph** field of the **AFX Engine** component.

<figure><img src="https://2640392766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5yxYHsXtlAaoMUrDWhLm%2Fuploads%2Fgit-blob-5f11e1eebb781cd1dd4c270c7ac087855218a368%2Fafx_add_to_component.png?alt=media" alt=""><figcaption><p>Dragging an AFX node to a Graph field</p></figcaption></figure>

If the AFX graph includes any reference nodes, or you add any reference nodes in the future, the corresponding property fields appear in the AFX Object Reference Manager component. For more information, see [references](https://docs.engagevr.io/developer/afx/afx-graphs/references "mention").

{% hint style="info" %}
After you add an AFX graph to an object, you can select **Edit Graph** in the **AFX Engine** component to open that graph.
{% endhint %}
