- Home /
Can you change the speed of a spawned particle?
In my 3D side-scroller game, I'm trying to achieve a sort of "light speed" type effect using Stretched Billboard, but one that can look different at different speeds. When the player is standing still, I want small square particles fading in and out behind them. When the player moves, the particles need to smear and start moving in the opposite direction.
The problem is that I can't seem to change the properties of already spawned particles. I can alter the speed scale of the particle renderer to cause a smear, but I can't seem to increase their speed at the same time. Is there any way to do that?
Answer by hypnoslave · Oct 08, 2015 at 05:29 AM
If anyone finds this thread, the simple answer is that this can't be done with the Shuriken particle system. However, Unity's legacy particles do give you a little bit more control via script, and this effect can be accomplished with them!
Answer by GiyomuGames · Oct 02, 2015 at 01:27 AM
You should be able to change all the properties of your particles using one of these 2 techniques: http://answers.unity3d.com/questions/483831/how-to-modify-particlesystem-from-editor-script.html http://answers.unity3d.com/questions/264482/accessing-shuriken-particle-system-values-through.html
Thanks! That unfortunately doesn't solve the issue but it lead to the solution. Someone in the comments section in that first link suggested that it can't be done, but I still have access to the legacy particle system, where I have more control. So I'll be able to use that to get the effect I want.