title: Change PostProcessing bloom effect via script
body: <p>I'm trying to change the bloom color (PostProcessing) via a script. In the inspector the color changes but not in the game view. Some help, please.</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.Rendering.PostProcessing;
  
  public class PostProcceserManager : MonoBehaviour
  {
      PostProcessVolume volume;
      Bloom bloomLayer;
  
      public ColorParameter [] ColorArray;
  
      private void Awake()
      {
          volume = gameObject.GetComponent&lt;PostProcessVolume&gt;();
          volume.profile.TryGetSettings(out bloomLayer);
      }
  
      private void Start()
      {
          //change the color
          volume.enabled = true;
          ColorParameter x = new ColorParameter();
          x.value = Color.red;
          x.overrideState = true;
          bloomLayer.color = x;
      }
  }
  </code></pre>