How to access ParticleRenderMode of particle system?

trying somth like particleSystem.GetComponent<Renderer>().ParticleRenderer.ParticleRenderMode = ParticleRenderMode.Stretch;
But it doesn’t work, am i reading the docs in a wrong way?

        // particleSystem.GetComponent<Renderer>().ParticleRenderer.ParticleRenderMode = ParticleRenderMode.Stretch;
        // GetComponent<Renderer>() unnesessary because you're trying to access the ParticleRenderer component.
        // There is no ParticleRenderer property in Renderer
        // the particleRenderMode property has a lowercase p, like all others in Unity.
        particleSystem.GetComponent<ParticleRenderer>().particleRenderMode = ParticleRenderMode.Stretch;
1 Like

awesome! thnx

Unfortunately it says:

Well, do you have a ParticleRenderer there?

sure thing! mbe they’ve changed API in 5.4?

Ok got it :

ParticleRenderer is the legacy particle system :wink:

yeah got it, but when u’re googling unity particle system components 90% of info refers to legecy system :frowning: