Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question DOF distance

Discussion in 'Universal Render Pipeline' started by AcidArrow, Feb 29, 2024.

  1. AcidArrow


    May 20, 2010
    How do I set the dof distance with URP? The physical camera focus distance setting seems to do nothing which is weird. Do I need to find which one is the active volume and set the distance there? What if I currently transitioning between volumes? Do I need to set it to all volumes?

    I don't want DOF distance to be tied to volumes, that seems incredibly silly.

    The package scripting docs really aren't much help.

    I'm reading this:

    How am I supposed to figure out how to set it? Why is this so awkward?
  2. Arithmetica


    Feb 11, 2019
    If you add a DOF override only for the global volume, that parameter will be used even if there is a local volume with a higher priority.