Answers for "how to edit postprocessing through script"

C#
4

how to edit postprocessing through script

using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
 
var volume = target.GetComponent<Volume>();

if (volume.profile.TryGet<Bloom>(out var bloom))
{
    bloom.intensity.overrideState = true;
    bloom.intensity.value = 2f;
}
Posted by: Guest on July-24-2020

Code answers related to "how to edit postprocessing through script"

C# Answers by Framework

Browse Popular Code Answers by Language