Hello there, I am trying to work out how the Unity HDRP Bloom Intensity slider works via Script, I have found out some information on how to access the Bloom attribute but when I try to change the intensity it doesn’t use the normal float rather it uses a “ClampedFloatParameter”. I have done my research into it but I think my knowledge is limited on that side so if someone could help me change the intensity with normal float values that would be amazing!
Code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.Rendering;
using UnityEngine.Rendering.HighDefinition;
public class PauseMenu : MonoBehaviour
{
public Bloom light;
void Start()
{
int bInt = PlayerPrefs.GetInt("bBool");
switch (bInt)
{
case 0:
light.intensity = 0.5f;
break;
case 1:
light.intensity = 0f;
break;
}
}
}