How to make a 'Shivering' Particle?
Hi, I'm trying to make a simple square particle which shivers. Something like this :
As you can see, red squares shirink while they're shivering.
I used 'size over time' to achieve this :
But what if I need a particle system that lasts 10 seconds? I have to draw that annoying curve over and over!
I tried to add random small value to each particle's size, like this :
for(int i = 0; i < particleArray.Length; i++)
{
ParticleSystem.Particle p = particleArray[i];
float randomAmount = Random.rand(-0.01f, 0.01f);
p.size += randomAmount;
particleArray[i] = p;
}
But the problem of script above is that, because it's random, some of the particles just keeps growing up and up(or down.)
How can I achive this effect in simple and clean way?
Thanks!
Your answer
Follow this Question
Related Questions
changing the radius of a particle system with unity script 1 Answer
Moving particle system via script causes choppy movement in build but works fine in pay mode 1 Answer
Particle Effect appears low-quality in-game. 0 Answers
Why can I not add my own image to particle material? 1 Answer
Particles Instantiate doesnt show up (Hidden behind background image) 0 Answers