Search Unity

Post-Processing wreckage while using addressables

Discussion in 'Addressables' started by Kolyasisan, Jun 19, 2019.

  1. Kolyasisan

    Kolyasisan

    Joined:
    Feb 2, 2015
    Posts:
    263
    This issue is quite specific.

    If you have multiple scenes that reside in different bundles then post-processing will most often break hard with unknown shaders error (trying to render a material with unassigned/broken shader, invalid pass number (1) for graphics.blit).

    In my case, I had 2 scenes that both were in different bundles, both using post-processing. After loading the first scene I loaded into the second one. After that loaded back into the first scene and post-processing worked no more during that build session. Packing both of those scenes into one bundle helped.

    I feel that there may be dependency issues. Can you please clarify on how to mitigate this particular issue (since you can't really snoop around in this department with packages)? Trying to shove the shaders into Resources didn't help.
     
    Last edited: Jun 19, 2019
  2. Kolyasisan

    Kolyasisan

    Joined:
    Feb 2, 2015
    Posts:
    263
    Just noticed another crucial bug regarding this behaviour. If the game uses sprite atlasses, then all of the packed sprites will not work at all on the first scene reload no matter if the atlasses are referenced in the addressable scenes or are addressables themselves.
     
  3. unity_bill

    unity_bill

    Unity Technologies

    Joined:
    Apr 11, 2017
    Posts:
    955
    There are a handful of issues with PostProcessing and asset bundles (which is what Addressables is built upon). If you have a specific issue, please file a bug against unity with a repro project.

    What do you mean? The whole point of packages is that they are open source, so you can snoop. Unless you are wanting to snoop in something I'm not aware of.

    There is a known bug surrounding something in a scene (direct reference) also being addressable and causing issues with that scene. Beyond that, the sprite atlas's should work. What version of Unity are you running on?