Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
}
 
PREVIOUS NEXT
Tagged: #edit #postprocessing #script
ADD COMMENT
Topic
Name
9+7 =