Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 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 PatHaugen · May 05, 2015 at 02:21 PM · editorbuildshadowsshadow

Shadows in Editor But Not in Build

Community,

I've searched for this on Google, Unity Forums, and Answers - nothing is helping and the problem seems widespread.

Search phrase: "unity shadows editor not build"

PROBLEM OUTLINE:

Everything looks perfect in the editor, but when a build is made, all shadows disappear.

PC Standalone on Windows 8.1 with dedicated AMD graphics card all fully updated drivers/updates on the entire system.

SOLUTIONS TRIED:

  1. Going to Edit -> Project Settings -> Quality you get a 'QualitySettings' window. Clicking through the options in the window (from 'Fastest' through 'Fantastic') you can see in the editor various things change including shadows. From quality 'Good' through 'Fantastic' the shadows look perfect in the editor and when playing the game in the editor. Building the game, no shadows no matter what quality setting is chosen.

  2. New quality setting created: 10x the Pixel Light Count from 'Fantastic' from 4 to 40, 10x the Shadow Distance of 'Fantastic' from 150 boosted to 1,500. Still with this new 'Insanity' setting and other options up, shadows are not working.

  3. Inspector window when the directional light selected: Altered 'Render Mode' to 'Important'

  4. Switched Inspector to Debug mode and tried setting the Directional lights from Range 10 to 100 (10x increase)

  5. Edit -> Project Settings -> Player: Set Rendering Path from Forward to Deferred

Each of these options have been tried, all these options at once, and various combinations of these options together. Still shadows are working fine in editor (scene and game windows as well as playing) but no shadows when testiing a build (standalone PC).

Hardware might be discussed, but keep in mind Unity is showing everything PERFECT in the editor.

Again Windows 8.1 with AMD GPU and latest drivers/updates on the entire system.

Editor shows the shadows fine. Perfect. However when you build there are none.

I have multiple scenes setup, some have a couple directional lights, some have one, some have a few point lights..

I'm at the end of what I can find and try..

Comment
Add comment · Show 3
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 jodev · May 05, 2015 at 04:04 PM 0
Share

It's not in your tried solutions, so let's get one of the obvious things to check out of the way first. When you are running the build, have you ensured that a quality setting that produces shadows is actually selected in the launcher?

avatar image PatHaugen · May 06, 2015 at 05:30 PM 0
Share

Answer to first question: Version: 5.0.1f1 Personal

Answer to second question: When running the build, have tried all quality settings. In the editor, quality settings from good upwards all show shadows properly. Dipping under Good in editor some shadows disappear. Running editor and build in Good or better, the editor shows shadows properly, the builds never show shadows.

avatar image HeyMufti · Feb 25, 2017 at 05:10 PM 0
Share

I have the same issue; Shadows show in editor, but not the 'game window' or the build.

Were you ever able to find a solution?

1 Reply

· Add your reply
  • Sort: 
avatar image
6

Answer by PatHaugen · May 08, 2015 at 12:26 AM

Lighting Solution:

Point Lights with Mixed Baking, various intensities and bounce intensities. Shows fine in editor, playing with things, at some baking step (kicked off automatically when modifying things in scene) shadows will break.

Altered Point Lights from Mixed to Realtime Baking, then got a warning:

"Currently realtime indirect bounce light shadowing for spot and point lights is not supported."

Dragged the Bounce Intensity sliders to 0 for all Point Lights.

Added a few more lights just to see if this was indeed the issue.

Works.

SUMMARY:

Point Lights set to Realtime or Mixed with a Bounce Intensity greater than 0 will break your lighting, but lighting will actually work in the editor.

BUG:

Unity doesn't warn or understand that the lighting break caused as described above is what is breaking ALL your lighting. This issue should be detected and ERROR out as it completely breaks all lighting when the above conditions happen.

I've solved my own problem, and hopefully this solves it for many more who search for their issue and stumble across this.

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 Hero_Holmes360 · Feb 09 at 06:49 PM 0
Share

So does that mean you can set it to baked and it will work in the build?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Shadows became ugly pixelated in Unity Editor 5 after an Android build 7 Answers

Note3 Shadows Gone 0 Answers

Distribute terrain in zones 3 Answers

No realtime Shadow after Build 0 Answers

Shadows are buged for me... 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