- Home /
How do change particle system mesh via script?
How do change particle system mesh via script? 
ParticleSystem.mesh = particlemeshes[1]; I tried this code but it didnt work:
You can't yet. This feature is supposedly co$$anonymous$$g in 5.3 (December 2015). https://unity3d.com/unity/roadmap
Answer by Mikhail94 · Jun 05, 2018 at 04:36 PM
Unity 2018.1
GetComponent<ParticleSystem>().GetComponent<ParticleSystemRenderer>().mesh = mymesh;
More info: https://docs.unity3d.com/ScriptReference/ParticleSystemRenderer.html
Answer by Cherno · Oct 06, 2015 at 09:58 PM
It's not possible. There is a hack to do it inside the Editor environment, but it is not possible in a standalone build. I regard it as a serious limitation of Unity's ParticleSystem, but we have to live with it (for now).
The best thing you can do is resize the Transform of the gameobject the PS is on to approach the area you want to cover.
Your answer
Follow this Question
Related Questions
Particle System Still Emitting Particles Even If Emission Is 0 0 Answers
How to keep particles moving past an obstacle after they have collided with it? 3 Answers
How can I change the gravity modifier of a particle system through script? 1 Answer
Toggle particle system on or off 2 Answers
Particles folowing path recent solution 0 Answers