I am trying to change the values of a “Scene Settings” from c #. but I am not understanding how to do it.
create a “case” where if it is daytime have a lighting and a cubeMap HDRI different from if it were at night, change exposure, rotation, Indirect Light, fog, etc etc.
try to do things like import UnityEngine.Experimental.Rendering.HDPipeline
and get the volume component with: Volume volume = gameObject.GetComponent();
or do something like that: SkySettings.HDRISky.exposure = 0f;
but nothing worked, it only gives errors like “volume was not found” or things like that. I already searched and found nothing. I’m going to keep trying but capable someone knew what I was doing wrong.
I use unity 2018 with HDRP 4.10 preview on Ubuntu 18.04lts
I use the 2018 version because it is lts. I do not know if it is convenient for me to pass the project to the 2019 version and a new HDRP