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.
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<PostProcessVolume>();
        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;
    }
}