Hi, guys!
I have been struggling to find a way to get and change current Post Process profile via script.
I have 2 profiles and what I basically want to do, is to change the current to the other one when a certain key is pressed and then check which profile is currently in use to change it back to the other one.
So is there any way? I am sure there is, but I am having a hard time finding it and putting my code together.
Thanks a lot!
here you go:
using UnityEngine.Rendering;
public Volume postProcessing;
postProcessing.profile <---
and there you can modify its further data 
1 Like
Thank you! I eventually got this working this way:
void ChangeProfiles() // When function is called, profiles are switched
{
if (volume.profile == sceneInspectingProfile)
{
volume.profile = normalProfile;
}
else
{
volume.profile = sceneInspectingProfile;
}
}
And then calling the function when I needed to.
Stay safe!