Setup graph
Setup graphs are essentially the "Begin play" method of deformer graphs. They execute once when a graph is set. Setup graph is where you might do more complex logic that would be expensive to run in the update graph, as well as clear out resource buffers. Clearing or resetting resources in the setup graph is often crucial to ensure old data doesn't get applied to skinned meshes, which can break graphs if you were to (for instance) unset a graph on a skinned mesh and then re-apply it at a later time.

This code would ensure the VectorBuffer resource contains zeroed out values when the graph is applied. Unsetting deformer graphs won't clear out buffers on the compute shader, so it's important to make sure you do clear them out when the graph is applied to a component.

Last updated