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

Change Lighting via scripting

Discussion in 'Scripting' started by ekt, Dec 20, 2015.

  1. ekt

    ekt

    Joined:
    Jul 9, 2012
    Posts:
    28
    Is there a way to set the Window\Lighting scene options via scripting?

    I know there si RenderSettings.ambientMode, but I cannot find how to set things like 'Precomputed Realtime GI' check or the 'Baked GI' flag.

    In the end, what I'm trying to do is have an editor script that sets the whole Window\Lighting page to some predefined values.
     
  2. ekt

    ekt

    Joined:
    Jul 9, 2012
    Posts:
    28
    in 5.4b1 release notes i see
    Code (CSharp):
    1. GI: Added Lightmapping.realtimeGI and Lightmapping.bakedGI editor APIs
    maybe...