Hello All,
I’m struggling a bit on this one. I have a cinemachine virtual camera with Volume Settings extension and a chromatic aberration override.
I am just trying to change via code the intensity of the chromatic aberration but can’t seem to be able to find anywhere how to access it.
I can see with
foreach (UnityEngine.Rendering.VolumeComponent volumeComponent in volumeSettings.m_Profile.components) {
Debug.Log(volumeComponent.name);
}
That a component with name “ChromaticAberration” exist. I also think that the class I want to use is
UnityEngine.Rendering.HighDefinition.ChromaticAberration
How can I now convert the VolumeComponent into the ChromaticAberration so I can change its intensity?
Thanks