Hey. In our game we recently changed over to the HDRP. And we quickly figured out all our particles stopped rendering. And we thought it would be great to swap it over to Visual Effects anyways.
But now all our particles is looping. How do we make “play once” effects?
For example, an explosion effect.
What I ended up doing for now, was to create a PlayForDuration script. Which essentially just starts a coroutine for a specified amount of time and then stops the visual effect again. Not a great solution. But it does the trick for now I guess.
Unity Developers, if you read this… Please add a PlayOnce() method as well as a IsPlaying boolean to the VisualEffects at some point.