// Set alphas for particles public static void SetAlpha (PlaygroundParticlesC playgroundParticles, float alpha) { Color pColor; for (int i = 0; i<playgroundParticles.particleCache.Length; i++) { pColor = playgroundParticles.GetParticleColorInternal(i); pColor.a = alpha; playgroundParticles.SetParticleColorInternal(i, pColor); } }