- Home /
Question by
alek123 · Apr 24, 2013 at 07:20 PM ·
particlesystemplaytimelinesimulate
Particle system Rewinded but not start again
Hi guys I have little problem with my code. I make timeline of particle effect and make it rewinded when timeline reach value . But after that rewind I can't play again this particle system becouse when I play it I dont see it. Can someone tell me where is problem ?
void Start () { particle.randomSeed = 1;
}
void Update() {
czas = czas + time.deltatime
if (czas <=4) // patrilce system playing forward
{
particle.enableEmission = true;
}
if (czas > 4 && czas <=8) // particle system playing backward form position where "czas" get value >4
}
particle.Simulate(Mathf.PingPong(Time.time, particle.duration - 0.2f),false);
//here we make rewinde particle system
}
if (czas > 8 ) // RESET to play it again in next frame
}
czas = 0 ;
particle.enableEmission = false;
}
}
Comment
Your answer
Follow this Question
Related Questions
Shuriken Particle Pause Stop Simulate 0 Answers
Weird behaiviour with particle system. 1 Answer
Particle system leaves gap 0 Answers