- Home /
Question by
TheMaker33 · Aug 09, 2017 at 04:23 PM ·
particlesystemrewind
How to rewind a particlesystem?
Dear community, I am working on a timemanipulation game and trying to bring this code right here private void fixedUpdate(){ foreach (ParticleSystem p in parts) { //var pa = p.emission; //pa.enabled = false; //p.Stop(); //p.Clear(); //p.Pause(); if (Input.GetKey(KeyCode.R)) { //po.simulationSpeed = 0; if (p.time > 0) { p.time -= 1; //p.Simulate(p.time, false, true, true); } } else if (Input.GetKey(KeyCode.F)) { if (p.time < p.main.duration) { p.time += 1; } } p.Simulate(p.time); //p.Play(); }}
to work... as you can see I ve tried everything to make the particlesystem rewind, but nothing seems to work, even the given answers of the community page didnt help... hope you can help me, thanks in advance.
Comment