title: Unity 5.3 Setting Particle System Emission Rate not changing
body: <p>I checked the documentation which I found nothing to show how to change of my Emission Rate in my Particle System and I checked Reddit and found nothing.</p>
  
  <p>This is what I am trying to change : <a href="https://i.stack.imgur.com/Py915.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Py915.png" alt="enter image description here"></a></p>
  
  <p>The code I am using that I thought would work is this :</p>
  
  <pre><code>public ParticleSystem Smoke;
  
  
  void Start()
  {
      // Get the particle system (Smoke) Module.
      em = Smoke.emission;
      rate = em.rate;
      // Set the Mode to Constant.
      rate.mode = ParticleSystemCurveMode.Constant;
  
  }
  
  void Update()
  {
      if (distance &lt; 1f)
      {
          // Attempt to set the constant
          rate.constantMin = 20f;
          rate.constantMax = 20f;
  
      }
  }
  </code></pre>
  
  <p>But with this above code when I look at my GameObjects Particle Systems Emission in the scene view and in the inspector nothing changes.  What am I doing wrong?</p>