Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Render World Space UI after Post Processing in HDRP

Discussion in 'High Definition Render Pipeline' started by second_ich, Jul 9, 2022.

  1. second_ich

    second_ich

    Joined:
    Oct 17, 2020
    Posts:
    39
    Hello,
    I have a Canvas with Render Mode set to World Space. The problem is the UI is getting affected by Post Processing.
    How can I render the UI after Post Processing?

    Thank You
     
    Last edited: Jul 9, 2022
  2. Qleenie

    Qleenie

    Joined:
    Jan 27, 2019
    Posts:
    736
    You can set a custom pass like this; only issue is that it does not play nice with Dynamic Resolution right now due to bugs which are known since a year or so and don't get fixed.
    upload_2022-7-9_13-38-53.png
     
    seoyeon222222 and second_ich like this.
  3. second_ich

    second_ich

    Joined:
    Oct 17, 2020
    Posts:
    39
    Thank you @Qleenie, Now that's kind of working. But it seems the UI now renders before and after Post Processing. Since you can see the blurred UI in the background

    Any idea how to fix that?
     

    Attached Files:

    • UI.PNG
      UI.PNG
      File size:
      918.5 KB
      Views:
      249
  4. Qleenie

    Qleenie

    Joined:
    Jan 27, 2019
    Posts:
    736
    tbh I don't have any idea how to fix it. What I've encountered is that it behave different in builds compared to run in editor, but not sure how this works with a DoF effect, as I don't use it.
     
  5. second_ich

    second_ich

    Joined:
    Oct 17, 2020
    Posts:
    39
    Thank you anyway. This has helped me a lot already.
     
  6. nehvaleem

    nehvaleem

    Joined:
    Dec 13, 2012
    Posts:
    393
    I have totally no clue how it will turn out, but have you tried to disable the UI layer from the camera's culling mask?
     
    iDerp69 and second_ich like this.
  7. second_ich

    second_ich

    Joined:
    Oct 17, 2020
    Posts:
    39
    That's it. Thank you so much! Now it works perfectly.
     
  8. iDerp69

    iDerp69

    Joined:
    Oct 27, 2018
    Posts:
    40
    Amazing, I've spent hours racking my brain on this and it was such a simple solution. Thank you!