title: Unity - Particle system color not set properly in android build
body: <p>I want to set the color of "Particle System" that I add to a game object in run time.
  both game object and particle system are created in run time too.</p>
  
  <p>I have the following code that works well on PC when I run it...
  But the problem is that in "Android" builds, color do not set correctly and particles are always "pink".</p>
  
  <p>It should be:
  <a href="https://i.stack.imgur.com/SnxbJ.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>But in Android it seen as:
  <a href="https://i.stack.imgur.com/sitCr.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>here is the code I use:</p>
  
  <pre><code>    GameObject sphere = GameObject.CreatePrimitive(PrimitiveType.Sphere);       
      sphere.transform.position = new Vector3(x, y, z);
      sphere.AddComponent&lt;ParticleSystem&gt;();
      var ps = sphere.GetComponent&lt;ParticleSystem&gt;();
      ps.startLifetime = 1;
      ps.startSpeed = 0.01f;
      ps.startSize = 0.03f;
      ps.maxParticles = 10000;
      ParticleSystemExtension.SetEmissionRate(ps, 10000);
      var sh = ps.shape;
      sh.shapeType = ParticleSystemShapeType.Circle;
      sh.radius = 0.69f;
  
      var cbl = ps.colorOverLifetime;
      cbl.enabled = true;
      Color mater = Color.green;
      cbl.color = new ParticleSystem.MinMaxGradient(mater);
  </code></pre>