- Home /
ParticleSystem 'emit' error
The compiler said ParticleEmission is obsolete and to use ParticleSystem. So I changed the code to:
//wheelsList[i].wheelParticles.GetComponent<ParticleEmitter>().emit = true;
wheelsList[i].wheelParticles.GetComponent<ParticleSystem>().emit = true;
and now I get the error: CS1061: Type UnityEngine.ParticleSystem' does not contain a definition for
emit' and no extension method emit' of type
UnityEngine.ParticleSystem' could be found. Are you missing an assembly reference?
How do i use 'emit' now with the new ParticleSystem?
I tried this and the 'emit' still doesnt work.
ParticleSystem ps = GetComponent<ParticleSystem> ();
var em = ps.emission;
em.enabled = true;
em.emit = true;
Your answer
![](https://koobas.hobune.stream/wayback/20220612132954im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Is it possible to place a complex particle system as a sub-emitter? 1 Answer
Particle System - Texture Sheet Animation, Flip U/V greyed out? 1 Answer
How to keep particles moving past an obstacle after they have collided with it? 3 Answers
Make a particle system with particles that stick to everything once they collide 0 Answers
Particle System Working in game view but not working on Android build. 1 Answer