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
13
Question by Cervelx · Oct 29, 2016 at 07:29 PM · lightload scene

Lights get darker when loading scene

Hi guys ! I have now upgraded from 4 to 5.4.2f2... Disaster ! I had to fix all the loadlevel with the scene management... but i have a problem with the directional light ! If i play the scene from unity it's OK, but if i restart the level, or i start the level from the main menu the direction light becomes more dark and strange... Please help me...

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

6 Replies

· Add your reply
  • Sort: 
avatar image
39
Best Answer

Answer by Zitoox · Oct 29, 2016 at 08:16 PM

Relax, it's pretty simple.

When you select a scene, Unity will automatically bake all the lights and render things. BUT when you open a scene while playing the game in the editor, Unity will NOT bake the lights,render them, fix the effects and all, and this causes everything to stay dark.

This only happens in the editor. If you build your game, you will see that this will not happen. Hope it helped =)

Comment
Add comment · Show 8 · 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 Cervelx · Oct 29, 2016 at 08:38 PM 0
Share

you have right, but when i test the game in my phone, light intensity is good but the shadows disappears...

avatar image Hellium Cervelx · Oct 29, 2016 at 08:40 PM 2
Share

Check your Quality Settings for the mobile platform.

avatar image AurimasBlazulionis Cervelx · Oct 29, 2016 at 08:41 PM 2
Share

this is because of the quality settings. Check in player settings and enable shadows in all presets.

avatar image Cervelx · Oct 29, 2016 at 08:50 PM 0
Share

OO$$anonymous$$ thank you guys :)

avatar image ZaninDevelopper Cervelx · Oct 30, 2016 at 01:37 AM 5
Share

You can also bake the lighting yourself for each scene (stops it getting darker upon scene transition). Go to Window -> Lighting -> On the bottom part of the window untick "Auto" and click "Build"

avatar image carlilelance · Dec 03, 2018 at 11:03 PM 0
Share

okay. but why? this seems more like a bug than a feature.

avatar image Villvall · Apr 04, 2021 at 06:31 PM 1
Share

I had the same problem, but when i build the game, it still doesn't work :/

avatar image awsapps · Mar 19 at 05:29 AM 0
Share

Doesn't work... after building my game (at least on linux), loading scenes are also darker...

avatar image
40

Answer by Arwym · Apr 03, 2018 at 05:44 PM

For those in the most recent version of Unity as of this date:

You have to go to Window -> Lighting. In that Window, look for the "Debug Settings". Untick the "Auto Generate" checkbox and hit the "Generate Lighting" button beside it. That should take care of it in the editor.

Comment
Add comment · Show 4 · 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 JGMEYER · Apr 05, 2018 at 04:28 AM 0
Share

Seems to do the trick, but only for the loaded scene?

avatar image Arwym · Apr 05, 2018 at 02:24 PM 0
Share

Yes, only for the scene you just loaded via API. I was having this issue when I loaded the scenes like this.

avatar image Allundo · May 27 at 09:22 AM 0
Share

Hmmm, I bumped into the issue that Stencil buffer is not working properly after "Generate Lighting" ...

avatar image KoalaJoe · Jun 06 at 04:16 AM 0
Share

Hehe, this is funny. I actually had to do the opposite for mine to work. I checked the box that said 'Auto Generate!' That fixed my issue. It created a new Asset in my Project/Scenes named New lighting Settings. It was bright! So I adjusted the light settings brightness, in my directional light in the Hierarchy, via the the Inspector settings. Problem fixed! For me, this issue happened in Unity 2020.3.21f1. While working on Prototype-5, of the Unity Junior Programmer pathway. | P.S. I did this before I spotted this thread. I guess I am learning how to code! I wish I would have found your post sooner, it would have saved me one hour from my 'life span!'

avatar image
4

Answer by cycodog · Jun 29, 2021 at 04:18 PM

I HAVE FOUND IT! This is a problem with the skybox loading between scenes. To fix it, go to Window>Rendering>Lighting>Environment. There you should see the Source in the Environment Lighting section set to Skybox by default. When I changed this to color(on ALL scenes) it fixed all my problems with lighting. Every project is different, but this worked better than all of the other solutions I have tried.

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 M_R_M · Oct 16, 2021 at 12:43 PM 0
Share

This of course gets rid of the missing environment lighting issue, but unfortunately it does so by removing the lighting contribution of the environment. While this might work for some games or some scenes and for averting a complete catastrophe, it's not a solution, it's really just a disabling of the feature, which is not really acceptable on Unity's part.

Unity needs to fix this very basic feature, even if it's only affecting the editor, which there is no guarantee that it is. Environment lighting cannot just be left up to a gradient, not for most modern games.

But it is an option though, and it does at least circumvent this very serious problem for testing purposes.

avatar image KoalaJoe · Jun 06 at 04:25 AM 0
Share

It will fix it, and it's good. But this will set the lighting for your entire scene. It will make your rooms, caves, and other environments that you might want darker, equally light. This setting affects the entire environment. This problems might need to be fixed in the lighting section, in order to maintain control of the different illumination settings that we want in a scene. But if's a side scrolling runner game, then you're OK. Still, you get props for creativity! --> This setting is for the 'Master Scene.' this means it affects the entire scene. It's used for real time and **Global illumination. | Not telling you this to prove you wrong. But so you know why your entire scene might end up looking brighter or dimmer than you want it in certain locations. But who knows, there are many ways to bypass these settings. You taught me something. I only knew about local illumination before hand!

avatar image
1

Answer by triangle4studios · Jun 16, 2021 at 12:10 AM

I just spent 2 hours trying to figure this one out. Come on unity. This is super basic.

Comment
Add comment · Show 1 · 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 triangle4studios · Jun 16, 2021 at 12:22 AM 1
Share

This seems to happen when the load scene has a different lighting setup than the second scene. It also seems to be that the scene you are in when you build, is NOT the scene that gets lighting set.

I dont know how else to explain it.

I have a menu. I have levels. The menu is the first scene and has no light. when I build from the menu, all is well. When I build from any other scene, the build has darkened lighting.

This is a very weird and confusing issue that needs resolution.

avatar image
0

Answer by jubaerjams8548 · Jun 09, 2020 at 01:15 PM

before baking auto lightning, alt text

but after baking ,the light get dark, ineed solution please....it hurtsalt text


bandicam-2020-06-09-19-14-18-151.jpg (260.6 kB)
bandicam-2020-06-09-19-14-40-869.jpg (206.0 kB)
Comment
Add comment · 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
  • 1
  • 2
  • ›

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

98 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 avatar image avatar image

Related Questions

A simple light switch 3 Answers

"Tube Light" hanging in a Rope? 1 Answer

making a little lamp in Unity? 1 Answer

How to access the lights properties from within a shader? 1 Answer

How to turn on a light, then off with the same button. 1 Answer


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