Hi all,
I’ve been messing around with Shuriken, am really enjoying a lot of things about it. One thing that I’m have a bit of trouble with is dynamically changing a system’s properties through script, mostly by lerping.
I have a particle system that emits from a sphere shape with a small radius. What I’d like to do is have the radius of the sphere change based on a calculation I’m making in my script. This is clearly supported because I can manually move the slider in the editor during gameplay and see the radius increase/decrease. There just doesn’t seem to be a way to change this number in script? Am I missing something, or is this just not possible?
Thanks!
Hey, checking back in on this question, I found a really good shuriken scripting tutorial. Thought I’d share, and hopefully it helps you out.
http://catlikecoding.com/unity/tutorials/graphs/
I noticed this as well. What I did was change the way I approached creating the particle system. This may, or may not work for yours depending on the requirements of your particle system.
Instead of using a sphere emitter of a certain radius, I set my sphere is very small. I then emit the particles with a very high initial speed and use limit velocity over lifetime to bring the particles to almost an immediate halt.
From there I can modify the start speed to get my particle effect to the exact radius I require.
It appears that scripting isn’t fully accessible yet in Shuriken, at least from what I can see looking around the forums. I’d love more info on this, as I (and many others) have a need to do this same thing.