> For the complete documentation index, see [llms.txt](https://dilly.gitbook.io/dilly/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dilly.gitbook.io/dilly/deformer-graph/trigger-graph.md).

# Trigger graph

Trigger graphs are similar to setup graphs in that they execute once, but unlike the setup graph they can be called on demand. This could be used to have more control over when expensive logic executes, or to clear out resource buffers, or apply other types of effects that don't need to be in the update graph.

Once you create a trigger graph, you can use F2 to give it a unique name:<br>

<figure><img src="/files/AS7epJnyz4wF26JyVPOw" alt=""><figcaption></figcaption></figure>

You can then call the trigger graph by doing the following:

<figure><img src="/files/Wst3STZUrgLXdwh9PR8V" alt=""><figcaption></figcaption></figure>

Unfortunately, as of UE 5.4, it seems trigger graphs don't work properly. The above code would always return false. Once I update my project to 5.5, I will update this page if I'm able to get trigger graphs to work.
