I have a particle system defined in my game objects. When I call Play
it plays (it plays for 5 seconds by design). when I call Play
again nothing happens. I tried to call Stop
and Clear
before recalling Play
but that didn't help.
Can particle systems play more than once?
My code is in this method, which is called when a button is clicked.
public void PlayEffect()
{
for (int i=0;i<3;i++)
{
NextItemEffectsP[i].Stop();
NextItemEffectsP[i].Clear();
NextItemEffectsP[i].Play();
}
}
NextItemEffectsP
is an array that contains particles that I populate in the editor