I know there are other posts about this & I think I’ve tried them all … nothing works thou
I just upgraded my Unity — Unity 2018.3.5f1… and I still have the same problem
public class ParticleController_Player1 : MonoBehaviour
{
public ParticleSystem Score_Blue_Small;
private ParticleSystem.EmissionModule Score_Blue_Small_Emission;
//
void Awake()
{ Score_Blue_Small_Emission = Score_Blue_Small.emission; }
//
void Start()
{ Score_Blue_Small_Emission.enabled = false;
// Score_Blue_Small.Play(); }
//
void Update()
{
if (Static_Class_Variables.Score_1Player_ParticleTrigger == true
{ RunParticale_1(); }
}
//
void RunParticale_1()
{
Score_Blue_Small.Play();
Score_Blue_Small_Emission.enabled = true;
//
// ParticleSystem Score_Blue_Small;
// Score_Blue_Small.startLifetime = Score_Blue_Small.startLifetime;
//
StartCoroutine(A_letPlay_IEnum());
//
// All the other stuff I have tried that didn't make any differance
// // Score_Blue_Small_Emission.enabled = false;
// // Score_Blue_Small.Clear();
// // Score_Blue_Small.time = 0;
// // Score_Blue_Small.Simulate(0.0f, true, true);
// // Score_Blue_Small.startLifetime = Score_Blue_Small.startLifetime;
// // Score_Blue_Small.emissionRate = 10;
// // Score_Blue_Small.enableEmission = true;
// // Score_Blue_Small.enable = true;
// // ParticleSystem.EmissionModule module_P1a = Score_Blue_Small.emission;
// // module_P1a.enabled = true;
}
//
IEnumerator A_letPlay_IEnum()
{
yield return new WaitForSeconds(4f);
//
Score_Blue_Small.Stop();
//
Score_Blue_Small_Emission.enabled = false;
}
//
}
Anything else that I could try… or any references that point to anything I haven’t tried yet would be very much appreciated… Thanks for any responses
There seems to be a trick that works for some people … some of the time… lots of tricks floating around… but I still have yet to find a trick that will (properly) work for me… I can turn the particles on and off by enabling/disabling a parent empty gameobject… But this looks really bad… it just makes all the particles suddenly and abruptly disappear ( does not look good at all )
I also tried setting the particles to world space instead of local space… but this did nothing for me either
My problem was solved… There is a ‘Stop Action’ in the ‘Inspector’ gui … I had to set it to ‘Callback’ for my particles to repeat… I find it strange that absolutely nothing I have read about particles during my long struggle to get this working… even mentioned this… maybe it just seems like such an obvious thing to someone that has done this before… but it sure was not obvious to me… lol