Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by SimRuJ · Apr 10, 2018 at 04:05 PM · scenelightloadingdifferentdark

Light gets darker after loading another scene

I followed a tutorial and created this box with a ball you can move around in Unity 2017.3.1f1:

https://i.imgur.com/rqyNY6s.png

After loading my e.g. options menu scene ("SceneManager.LoadScene("OptionsMenu")"), which also unloads the main game scene, and closing it again, it looks like this:

https://i.imgur.com/rwvrJNq.png

If I load the options menu first and switch to the game scene afterwards, it directly loads with the weird lighting.

I've never changed anything about the lighting in any of my scenes and already tried doing the following in every scene but it didn't help:

  • Window - Lighting - Setting - Uncheck "Auto Generate"

  • Select "Clear Baked Data" in the "Generate Lighting" list

  • Click "Generate Lighting"

Does anyone know what could be the problem and how to fix it? Thanks in advance!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by SkyAngel_AOG · Apr 11, 2018 at 08:39 AM

HI, @SimRuJ!

click to dirrectional light object, in inspector set Light Mode to Realtime. the next open Window -> Lighting. In lighting window click to Generate light in your scene.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SimRuJ · Apr 11, 2018 at 11:05 AM 1
Share

Thanks for the tip but all of my lights (1 light per scene that was automatically added) are already set to "Realtime", it's probably the default setting.

I already tried to generate the lights again and also cleared the "Baked Data" - that's what was usually suggested in similar threads - but it didn't help.

The thing is: The game view previews the the right lighting for the scene with the box, it's only when I start my game (through the "play" button or the built exe file) and switch to the scene from the main menu that the lightning is messed up.

Another post mentioned that the problem might be caused by using "DontDestroyOnLoad", which I did try at one point but it didn't work, so I deleted the code for it again.

avatar image RemusRain SimRuJ · Apr 08, 2021 at 07:55 AM 0
Share

I have the same issue. Did you find a solution for this?

avatar image SimRuJ RemusRain · Apr 08, 2021 at 08:35 AM 0
Share

Sorry, haven't worked on that project in a while. I'm currently using Unity 2020 and also haven't really checked lately if the problem's still there (at least with two scenes). One thing I can tell you is that objects/lights (with real-time lighting) don't like being white in Unity 2020, you have to change the settings a lot and then it feels like the light's too bright. There's at least one tutorial on youtube about how to get actual white lighting but I haven't fully watched it yet.

avatar image
0

Answer by Bartson · Apr 11, 2018 at 06:30 AM

It's normal thing. Just do build and everything should be ok.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SimRuJ · Apr 11, 2018 at 08:25 AM 0
Share

I built it (standard build settings, Win 10) and even started it directly through the .exe file but it's still doing it. :/

avatar image brunobely · May 27, 2021 at 07:51 PM 0
Share

So I can't test scene changes in my game with correct lighting in editor (without doing a full build of the game)? Seems... bad?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

96 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Addressable for Oculus Go 2 Answers

Save & Load Game question 3 Answers

How to switch scenes with no delay 2 Answers

Can a camera cull lights on certain layers? 1 Answer

Unity2020 loads project but unable to edit 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges