- Home /
Question by
richardzzzarnold · May 13 at 09:13 AM ·
particle system
How to make particle system emit?
I am simply trying to get a particle system to emit. I cannot believe how difficult this always is. Unity seems to change the procedure on a monthly basis.
I followed exactly the steps in the docs :
SprayParticles = ParticlesObject.GetComponent<ParticleSystem>();
var em = SprayParticles.emission;
em.enabled = true;
but I am getting the error:
NullReferenceException: Do not create your own module instances, get them from a ParticleSystem instance
What the heck? As i stated, all i am trying to do is get the emission to be true.
Comment
Your answer
Follow this Question
Related Questions
Trying to change a particle system on and off with a toggle 0 Answers
How can I know the current size of a particle in a particle system? 1 Answer
How can i make fluid or water with physics inside transparent gameObject like sphere or cube? 2 Answers
Particle System through Script 1 Answer
Can you still not change the Velocity of spawned particles? 2 Answers