- Home /
Question by
arzezniczak · Jun 12, 2018 at 01:01 PM ·
particlesruntimerendererparticle system
Particle system renderer runtime access
Hello, is it possible to access this particle system renderer settings from script at runtime?
I'd like to change material for some runtime generated one. Is it possible?
renderer-settings.jpg
(38.0 kB)
Comment
Best Answer
Answer by arzezniczak · Jun 12, 2018 at 01:27 PM
Nevermind, found it. There is whole class called ParticleSystemRenderer and accessing it from ParticleSystem object is simple as:
particleSystem.GetComponent<ParticleSystemRenderer>()
Your answer
Follow this Question
Related Questions
Blast Particle Gets Cut Off 0 Answers
Optimize Particle Emitter with Massive # of Particles 0 Answers
Particle System Collision Problem 0 Answers
Detect Position of Particle that is hitting a Collider 0 Answers