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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

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:
    103
    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:
    120
    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:
    103
    Thanks for the reply, however this is just in a single scene.
    Good to know though!
     
  4. KarlKarl2000

    KarlKarl2000

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