- Home /
Scripting Shuriken
How does one access the Shuriken modules from code in version 3.5?
For example, I would like to be able to fire off a particle system programmatically instead of relying on the random nature of a cone angle. For this to work, I'd need to access the "Velocity over Lifetime" parameters from within a script.
Any examples or ideas?
For what it's worth, I've already iterated over both sibling and child components (of a Shuriken ParticleSystem) and find nothing of value. I suspect that the Shuriken system is simply under-exposed. Hopefully, this will be fixed in 3.5.1! :-)
Thanks in advance!
Answer by zombience · Jun 27, 2012 at 11:55 PM
So, I've found this scripting tutorial for Shuriken. I've had this same question for a while, and I'm not working through this page to learn all about it. Seems pretty handy! Hope it helps.
For some reason I can't upvote this answer. It's proven useful. (thanks Catlikecoding - love the tuts)
@gl33mer - Thanks for pointing out this answer. I was really busy before (and still am) and didn't really have time to check out the link in detail.
@zombience - Thanks for find this link. This is the best I've seen on this subject. Fantastic! I still wish Unity exposed more of the Shuriken system, but this approach is really useful and I love the math functions being visualized!
CatlikeCoding.com - If you ever see this: I agree with gl33mer and particulary love this tutorial. Thank you!