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

Question Automatically disable Realtime GI every enter scene

Discussion in 'High Definition Render Pipeline' started by macepok, Mar 14, 2023.

  1. macepok

    macepok

    Joined:
    Apr 18, 2019
    Posts:
    11
    upload_2023-3-14_11-50-24.png
    i'm using 2022.2.8f1 HDRP project
    enable Realtime GI , Scene lighting is look good
    but I go out to other scene and back to this scene, the Realtime GI auto disable.

    I'm using "lightingSettings.realtimeGI = true;" to enforce open GI, but that is Editor function and not for build.

    Why Unity automatically disable Realtime GI?
    Or can I enable via script not using Editor api?
     
  2. ThomasTam

    ThomasTam

    Joined:
    Nov 26, 2020
    Posts:
    1