[Solved] Triggering a VFXComponent via script
Hey community,
I'm trying to figure out how I can trigger a VFXComponent to emit particles via script. My use-case is to emit particles at a certain time into an animation. The animation is looping which means I need to be able to trigger the particles many times. I'm currently using the Burst spawn mode. The Once spawn mode may also work although I found it changed my particles' scale.
Here are some of the things I've tried:
- Calling the VFXComponent's reset() function
- Toggling the component off and on
- Making the VFX a prefab and instantiating it at emit time
But, I haven't been able to get it to work. Is what I'm trying to do possible?
Ah, I missed the Interactive Spawn Example on the VFX guide: