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

Other SOLVED -URP -WIN - Post Processing working in Editor and not in all scenes of the build!

Discussion in 'Image Effects' started by SharpAccent, Jun 22, 2023.

  1. SharpAccent

    SharpAccent

    Joined:
    Jul 19, 2018
    Posts:
    39
    Hello
    I'm faced with the weird bug that post processing has become very picky as to what scenes it will work on in builds. The setup is this, all scenes include a -data and a -visuals scene, the -visuals scene is an addressable that loads from the -data scene.

    In the main menu (exactly same setup). The post process is working fine, no issues, the moment we go in a game (instancing a new camera etc) they vanish. In editor they all work fine, however in build only the main menu scene has them.

    Things i've tried so far:

    1. Reimporting URP
    2. Moving all pp volumes in resources
    3. Adding all shaders in "always include" in graphics
    4. Making new URP Asset and render data with same settings
    5. Deleting camera and making a new one
    6. Camera Post Process is ofc on otherwise it wouldnt work in editor same as in the pipeline asset'
    7. Added a shader variant collection in preloaded shaders
    8. Scripting define symbols has "UNITY_POST_PROCESSING_STACK_V2"
    9. No more than 1 camera in scene either
    10. Strip unused Post Process variants is off
    11. Also added Beautify in the stack just to test and THAT WORKS, so it's something only with the URP Post Process Stack
    I read in the forums that you have to move the shaders in the resources folder but the URP shaders are located in the packages.

    I'm not sure what else to even try, only thing that "worked" was adding a CinemachingVolumeSetting and adding a profile there but when replacing the profile by script it didnt work either. This way we can't have different profiles per scene etc so this is not really a solution either

    The weirdest of all is it works fine in editor and in the first scene!
    The platform i'm building for is Windows

    So any thoughts?
     
    Last edited: Jun 22, 2023
  2. rmhowe

    rmhowe

    Joined:
    Jan 31, 2021
    Posts:
    1
    Was just having this issue on 2021.3.26 building for macOS with a similar set up of multiple loaded scenes using addressables, couldn't figure out at all what was going on but it seems to be fixed by updating to 2022.3.3 if that's an option for you.
     
  3. SharpAccent

    SharpAccent

    Joined:
    Jul 19, 2018
    Posts:
    39
    After a long downward spiral i found out that Beautify has a strip all for normal urp post processing and it's on by default. After deleting it from the project (good riddance) it all worked fine
     
  4. Kronnect

    Kronnect

    Joined:
    Nov 16, 2014
    Posts:
    2,875
    It's not on by default.