- Home /
Controlling ParticleSystem playback time with a slider: Setting ParticleSystem.time doesn't work?
I'm controlling an Animation position with a slider. This animation also contains a particle system, which I want to be affected by the slider as well. I would like to achieve the same effect as when sliding the Playback Time of the particle system simulation in the editor. However, I'm afraid I can't do it no matter what I've tried.
Trying to set the ParticleSystem.time value has no effect on what I see: the particle system seems to not be affected by altering it, though if I read the time value back, it is indeed changed to what I set it.
ParticleSystem.Simulation seemed promising, but negative values don't work with it so you cannot reverse the particle system with it.
Any insight on this would be really appreciated! I'm using 5.5.2f.
Answer by sisi0616 · Mar 05, 2019 at 07:48 AM
I do not know the correct answer, but I hope this article helps.
https://forum.unity.com/threads/particle-system-preview-scrubbing-by-script.565648/
I could not finish that part either.
Your answer
Follow this Question
Related Questions
UI element stuck in position on screen? 0 Answers
How do you set Particles to known positions? 4 Answers
Change position - cameras - slider 1 Answer
Teleporting old particle system 0 Answers
Position slider? 1 Answer