My goal is to set the intensity of bloom with Time.realtimeSinceStartup, and I wrote these.
using UnityEngine.Rendering.PostProcessing;
public class BloomChange : MonoBehaviour
{
public PostProcessProfile bloomprofile;
public float pbloom;
void Update()
{
var blm = bloomprofile.bloom.settings;
}
}
but received error with`Type `UnityEngine.Rendering.PostProcessing.PostProcessProfile' does not contain a definition for `bloom' and no extension method `bloom' of type `UnityEngine.Rendering.PostProcessing.PostProcessProfile' could be found. Are you missing an assembly reference?
`
so how can I now get access to the post processing volume component and change the floats in it?
Thx in advance for any help.
↧