Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

Get LightingSettings from given Scene?

Discussion in 'Editor & General Support' started by ExodusOTH, Oct 19, 2020.

  1. ExodusOTH

    ExodusOTH

    Joined:
    Nov 30, 2017
    Posts:
    43
    Hello,

    Does anybody know how to get the LightingSettings from a given Scene?
    For example,

    I load a scene Additively.
    At the start of this, I tween the Lighting's fog's EndDistance down to 0.
    Once it's loaded, I want to tween the lighting and fog up to the desired level of the new LightingSettings (before actually setting this new scene to be the active one.

    I can't for the life of me figure out how to get a reference to an additively loaded scene's lighting settings, only whatever the current one is.

    Any help?
     
  2. ExodusOTH

    ExodusOTH

    Joined:
    Nov 30, 2017
    Posts:
    43
unityunity