Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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