URP-Autofocus-DOF-Script Unity autofocus depth of field (DOF) script for universal render pipeline (URP) Tried in Unity 2020.1.1 To make it work, add DOF module in postfx volume, set mode to Bokeh, enable "focus distance", enable "aperture", and try different settings