Hi.
First of all I’m new to Unity so sorry for noob question.
What I have a empty-a with some model, then empty-b attached to a model and particle system attached to empty-b.
Simple right? The whole group come from object pool. After I’m done with the group it goes back to the object pool.
Particle system has a simulation space set to world, and I would like to stay like that.
Now the problem is that when I’m pulling group from the object pool (reusing it) and setting new position, there is a trail of particles between old and new position. My attempt to stop and start particle system has failed.
Script attached to particle system :
using UnityEngine;
using System.Collections;
public class Particle : MonoBehaviour {
void OnEnable(){
particleSystem.Clear(true);
particleSystem.Play(true);
}
void OnDisable(){
particleSystem.Clear(true);
particleSystem.Stop(true);
}
}
Any ideas?