Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Artifactx · Mar 13, 2015 at 10:02 AM · lightingbugskybox

Unity 5 skybox lighting bug

Hello, I was playing around in unity 5 this morning and stumbled upon a bug(or atleast I think that its a bug).

Whenever I load a scene with a skybox enabled the lighting changes dramatically.

The code used in my video is simple, I just reload the loaded level when I press space:

     if (Input.GetKeyDown(KeyCode.Space))
     {
         Application.LoadLevel(loadIndex);
     }

Here is a video that demonstrates it. My question is, is this a bug, and is anyone able to reproduce this?

http://youtu.be/rJqjd9LMwjU

Comment
Add comment · Show 4
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 mpulkkinen · Mar 14, 2015 at 01:01 AM 0
Share

I noticed the same thing few $$anonymous$$utes ago: using Application.LoadLevel seems to screw up Enviroment lightning settings, for example Ambient Intensity does nothing when adjusting it after LoadLevel

avatar image Luckymouse · Mar 20, 2015 at 06:21 PM 0
Share

When I see your video, i don't think there are any bug.

Scene1 is using Skybox ambient, so you get the skybox ambient light (bluish colour). Scene2 is using Color ambient and no skybox, so you get the grey colour ambient light.

You start the Scene1 and then load Scene2, ambient change from bluish to grey colour. I don't see any wrong with that.

avatar image Artifactx · Mar 20, 2015 at 06:23 PM 0
Share

Thare are no scene 1 and scene 2.. I'm loading the same scene. It is 100% the same scene

avatar image adiba · Jan 10, 2016 at 05:00 PM 0
Share

I'm having the same problem! Have you fixed it in any way? Please let me know.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Raynoko · Mar 13, 2015 at 01:03 PM

Try set up "baking light" in Directional light. choose "mixed" or "realtime", hope helpful

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 Artifactx · Mar 13, 2015 at 01:56 PM 0
Share

Nope didn't change anything :/

avatar image
0

Answer by ZorbaTHut · Jan 08, 2017 at 06:42 PM

This appears to be the result of a Unity bug caused by loading a scene during a specific event (one report says that this occurs when loading in Awake(); I haven't tested it.) There's a pretty simple workaround; call DynamicGI.UpdateEnvironment(); explicitly. It'll tell Unity to update lighting settings.

Probably want to do this exactly once, right before the load screen goes away.

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

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

27 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

Related Questions

Why are some of my sprites brighter than others? 1 Answer

Toggling between skyboxes/lighting with a button 1 Answer

Accidentally Clicked Refresh Assets and This Happened. How Do I Fix It? 0 Answers

Weird black lines 1 Answer

Add Light Source to Sun in Environmental Lighting with Unity 5 by Script? 3 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