VFX Graph and Audio

Hi everyone, I’m new to Unity and I’ve learned a ton over the past 10 or so days using the program. I am working on making fireworks and love the way they look and the customizability using the VFX Graph. Now that I’ve finished with that, I can’t find any way to add audio to them. Is there a way to play an audio clip upon the birth (shooting into the air) and death (shell explosion) of a particle in VFX Graph? I know people have done it in Particle System but I did not like any of the results I was getting there in regards to realistic looking fireworks. Is this something that is just not possible? Is there a workaround? What am I missing here or is this a feature that will be added anytime “soon”? Look forward to learning so much more from this community :slight_smile:

Most of the time you may need to play sound when you trigger event and this is easy as both things happen at the same time, so you can just play sound when you send event. I guess your fireworks use GPU events to spawn explosion and this is the moment you want to play audio. To do that there are CPU events - you send information back to C# and then you can do whatever you want with that (play sound in your case):
https://docs.unity3d.com/Packages/com.unity.visualeffectgraph@11.0/manual/OutputEventHandlers.html

1 Like