- Home /
Question by
Tricky1980 · Apr 07, 2014 at 04:29 AM ·
c#particlesystem
Particle system shape radius change through script
How do I access the shape radius of a particle system in C#?
Comment
Answer by Miscellaneous · Jul 08, 2016 at 12:57 AM
float radius = 33f;
ParticleSystem ps = GetComponent<ParticleSystem>();
var sh = ps.shape;
sh.radius = radius;
Answer by fabulousJ · Jul 26, 2020 at 10:59 PM
C# version:
float r = 33f;
ParticleSystem.ShapeModule ps = myEffect.GetComponent<ParticleSystem>().shape;
ps.radius = r;
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Enabling the particle system with particle.Play(); not working 2 Answers
How do I start particle emission in c#? 1 Answer
Stretched Particles Billboard 0 Answers