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. Dismiss Notice

Copy Lighting Settings From Scene To Scene

Discussion in 'Editor & General Support' started by SteveJ, Mar 9, 2015.

  1. Skegon

    Skegon

    Joined:
    Feb 21, 2013
    Posts:
    26
    Just used it and it worked just perfectly. Cheers @Peter77 !
     
    Peter77 likes this.
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,438
    From the Unity 2020.1.0a14 release notes:
    https://unity3d.com/unity/alpha/2020.1.0a14
     
    Aranda, dshimmyo, phobos2077 and 2 others like this.
  3. dshimmyo

    dshimmyo

    Joined:
    Oct 2, 2016
    Posts:
    3
    Peter77 likes this.
  4. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    317
    This is going to save me so much time when testing lighting setups, thanks!

    // Wildstyle
     
    Peter77 likes this.
  5. wedgiebee

    wedgiebee

    Joined:
    Aug 9, 2016
    Posts:
    38
    @Peter77 I just tried it in 2019.3 and it worked great! Thanks for making this!
     
    phobos2077 and Peter77 like this.
  6. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,438
    Thanks for letting me know, I just updated my post to include this info!
     
  7. Andros_Spica

    Andros_Spica

    Joined:
    Jan 20, 2016
    Posts:
    1
    Works like a charm in Unity 2019.3.6f1. This is very useful! Thanks!
     
    Peter77 likes this.
  8. Akravator

    Akravator

    Joined:
    Aug 8, 2017
    Posts:
    19
    thanks @Peter77
    the script works perfectly in Unity 2019.3
     
    Peter77 likes this.
  9. RG_Keith

    RG_Keith

    Joined:
    Mar 14, 2017
    Posts:
    35
    @Peter77 Is there a license of some kind for this code anywhere?
     
  10. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,438
    Nope, but I can throw a MIT license at it if you want. I could also turn it into a Package that can be installed through Unity's Package Manager, if that's useful.
     
  11. RG_Keith

    RG_Keith

    Joined:
    Mar 14, 2017
    Posts:
    35
    Yeah an MIT license there would be great, just to keep the lawyers happy! Thanks.
     
  12. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,438
    Colin_MacLeod likes this.
  13. RG_Keith

    RG_Keith

    Joined:
    Mar 14, 2017
    Posts:
    35
    Peter77 likes this.
  14. Ziplock9000

    Ziplock9000

    Joined:
    Jan 26, 2016
    Posts:
    360
    However, only 1/3 of the settings are in the new asset.. Lighting->Scene, but not Lighting->Environment or Lighting->Baked Lighting (although that last one does not makes sense)

    Does your plugin do Environment?
     
    Peter77 likes this.
  15. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,438
    Thank you, I wasn't aware of that. In this case, the package is still relevant, even in Unity 2020 and newer.

    Yes, it does copy/paste the Environment settings.

    I've just released a new version which adds Unity 2020 support:
    https://github.com/pschraut/UnityCopyLightingSettings
     
    Ziplock9000 likes this.
  16. Ziplock9000

    Ziplock9000

    Joined:
    Jan 26, 2016
    Posts:
    360
    You are a hero, thanks!
     
    Peter77 likes this.
  17. Ahab_

    Ahab_

    Joined:
    May 22, 2019
    Posts:
    38
    Works great in 2019.4.10f. Thanks @Peter77 !
     
    Peter77 likes this.
  18. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    24
    @Peter77 Thank you sir, you've saved me lots of time!
    Worked perfectly in 2020.3.
     
    Peter77 likes this.
  19. ITEnot

    ITEnot

    Joined:
    Sep 14, 2018
    Posts:
    3
    @Peter77 Also worked with 2022.2.1f1, thanks!
     
    Peter77 likes this.
  20. EvilKris

    EvilKris

    Joined:
    Nov 18, 2014
    Posts:
    27
    Verified to work well in 2022.3.1f1! Thanks
     
    Peter77 likes this.