Search Unity

Bug URP LIGHTS GONE WILD AFTER BUILD

Discussion in 'Universal Render Pipeline' started by charboadev, Jun 1, 2022.

  1. charboadev

    charboadev

    Joined:
    Mar 20, 2021
    Posts:
    3
    Hello everyone, I am having a really spesific issue. I couldn't find anything relatable on the internet and seems like I'm the only one having this issue (bug maybe). The problem is lights and colors on my game looks significantly different in editor and build versions. I've tried to build my game before and it worked just fine couple of days ago. But now as much as I'm try to build with different light settings and with or without post processing the result is the same. I tried so many different settings and now I feel like it just might be a bug. Fortunately I am at the early stages of my game so I can consider migrating my whole project to a new Unity URP Project but still I want to know what might cause this issue.

    Note: I'm using Unity Editor 2021.3.1f1 LTS version

    Game looks like this in editor:


    And looks like this in build:
     
    Last edited: Jun 1, 2022
    mirackavukcu and yigityaldiz like this.
  2. yigityaldiz

    yigityaldiz

    Joined:
    Aug 23, 2020
    Posts:
    1
    Wow that is definitely new. What is that? Do you see this on editor only? If the new URP causes this it must fixed immediately
     
    mirackavukcu likes this.
  3. madsunmax

    madsunmax

    Joined:
    Jun 1, 2022
    Posts:
    1
    It seems like an shader related issue. You might want to check your shader includes.
     
    mirackavukcu likes this.
  4. Alperen0128

    Alperen0128

    Joined:
    Jun 1, 2022
    Posts:
    1
    Have you tried switching between linear and gamma light modes under the Player Settings > Other Settings > Rendering > Color Space?
     
    mirackavukcu likes this.
  5. mirackavukcu

    mirackavukcu

    Joined:
    Jun 1, 2022
    Posts:
    1
    There are so many issues with 2021 Unity Editor even with the LTS version. You might want to downgrade your unity version if you really made up your mind about migrating the project.
     
  6. charboadev

    charboadev

    Joined:
    Mar 20, 2021
    Posts:
    3
    I've tried both it doesn't work either way. Even though if it worked with Gamma color space I don't want to use it for this project.
     
  7. charboadev

    charboadev

    Joined:
    Mar 20, 2021
    Posts:
    3
    I am actually considering to migrate the whole project to 2019.4.31f LTS I've used this editor version for a year and I don't remember having such critical issues.
     
  8. DallaiStudios

    DallaiStudios

    Joined:
    Feb 19, 2018
    Posts:
    3
    I'm having the same issue... Did o
    You found the fix?
     
  9. DallaiStudios

    DallaiStudios

    Joined:
    Feb 19, 2018
    Posts:
    3
    I found the solution for the problem. Actually is something very dumb.
    URP uses Screen Space Ambiente Occlusion in order to render ambiente occlusion.
    If your current quality setting are not using the SSAO, this will change how lights behavior.
    Everything you need to do to fix the problem is just check a box.
    I hope this can help
    upload_2023-3-18_11-54-58.png