I want to set PostProcessing Values by script.
void ConfigManager_FetchCompleted(Unity.RemoteConfig.ConfigResponse obj)
{
LiftGammaGain lgg = VolumeManager.instance.stack.GetComponent();
var lift = lgg.lift.value;
lift.w = Unity.RemoteConfig.ConfigManager.appConfig.GetInt("PostPro-Lift", 0) / 100f;
lgg.lift.value = lift;
}
The value gets set.
But it is not applied! I tried lgg.lift.SetValue() as well, but that does not compile saying, the lift value does not match.
↧