Can I use a particle system for critical game functionality?
I have a cannon battery firing like a 100 cannon balls at the same time. Either I have to spawn 100 gameObjects or I can use a particle system to do this. I would like to use the Particle System for performance reasons, but then I have to register damage based on particles hitting the target. This works, but is it a bad approach? Is particles only supposed to be used for visual effects?
"Supposed" differs greatly from game to game, but having 100 objects does not seem like a lot of objects(depending on the platform ofc.). Just make sure to utilize pooling so you don't destroy and instantiate at run time, but just reuse them. pooling ref https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/object-pooling
Thanks for the input. I'm trying to use the Particle System for now. I'll see if I run into problems with it.
Your answer
![](https://koobas.hobune.stream/wayback/20220612002609im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how to play particle system at contactpoint 0 Answers
OnTriggerEnter vs distance check in Update 1 Answer
Intersecting edge colliders cause particles to pass through one edge collider? 1 Answer
Ignore collision for a single billboard particle? 0 Answers
Should you instantiate new particle systems or keep them active inside gameobjects? 2 Answers