Search Unity

Bug Fog works in Editor, not in Build

Discussion in 'Universal Render Pipeline' started by Justin-Wasilenko, Nov 8, 2022.

  1. Justin-Wasilenko

    Justin-Wasilenko

    Joined:
    Mar 10, 2015
    Posts:
    104
    Exponential fog shows up in the editor in scene view and game view but does not show up in the build.

    Using Unity 2022.1.18, URP, Android, Vulkan, on Meta Quest 2.

    I tried searching but only found old threads mentioning that Fog did not work in previous builds and it was added in. But it is not working for me.
     
  2. Oxeren

    Oxeren

    Joined:
    Aug 14, 2013
    Posts:
    121
    Sometimes this may happen if in the build you have multiple scenes loaded additively, and a scene that is set to be active is different from the one that was active in the editor, so fog settings are incorrect (since fog is defined by the active scene).
     
  3. Justin-Wasilenko

    Justin-Wasilenko

    Joined:
    Mar 10, 2015
    Posts:
    104
    Thanks for the reply, however this is just in a single scene.
    Good to know though!
     
  4. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    606
    Last edited: Jul 2, 2023
    Arnold_2013 and valentin56610 like this.