New answers tagged scripting
I've been using LuaInterface from c#/XNA. Mostly thus far I've been using it for entity creation (I too am using an entity-component system). That's been working pretty well. I can't speak to the speed as entity-creation is a comparatively rare event, though soon I intend to script collision handling, etc. I suspect it should be fast enough, I understand ...
It depends on a situation. If you have only two different particle systems that you want to use, Nevermind's answer with two different child object is definetly the best. However, if you want to use a lot of different particle systems (for example, if you making an RPG with a lot of spell effects), you may want to instantiate/destroy (or better, take from ...
Attach two GameObjects to one parent, each with a ParticleSystem, and just activate/deactivate them as needed.
Top 50 recent answers are included