My depth of field is not working when i build the game but it’s working while playing in the unity editor. Also other effects are from the same Volume totaly fine in build. I tried to change priotry of Volume but it didn’t work too. Should i change somethings on player settings? I’m using 2021.1.7
And this is how i change my depth of field in code:
void focus_item()
{
DepthOfField depthOfField_;
if(volume.profile.TryGet<DepthOfField>(out depthOfField_))
{
depthOfField_.focusMode.value = (DepthOfFieldMode)2;
}
}