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
0
Question by senzor · Apr 23, 2015 at 04:20 AM · errorbuildunity5shadowsshadow

Why don't shadows appear in my built .exe? Unity 5

I am running Unity 5.

I am using a directional light with hard shadows enabled.

The shadows are real time and render just fine in Game View and when playing the game inside the editor.

However, when I build and run the .exe, the shadows are nowhere to be found.

I went to window and set my directional light as the sun, tried deleting my directional light and making another, and made sure my graphics settings had shadows on. I also checked my objects and yes, they are set to receive shadows.

Is this a Unity 5 bug? Is my file corrupted? I have no clue how to fix this issue.

Thank you for your time and help.

Comment
Add comment · Show 6
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 senzor · Apr 22, 2015 at 11:28 PM 0
Share

Further Information: I have tried playing the game on a variety of settings. $$anonymous$$aximum settings does not show the shadows.

avatar image senzor · Apr 22, 2015 at 11:33 PM 0
Share

Further Information: $$anonymous$$y computer has Nvidia GTX 770s in SLI. They are rendering the shadows inside game view, so I know my hardware is not the problem. I have a different level where the shadows are working just fine

avatar image senzor · Apr 22, 2015 at 11:52 PM 0
Share

I have tried building the file for PC 86 and PC 86_64. I have a 64 bit 86_64 PC but the shadows are not there in either

avatar image senzor · Apr 23, 2015 at 12:19 AM 0
Share

Further info: I have windows 8.1; I have read about issues

avatar image ForeignGod · Apr 23, 2015 at 07:45 AM 0
Share

I had this same problem, i tried every possible thing. Did not work. After waiting a long time i ended up starting the project fresh and it worked. Thats more of a end solution though.

Show more comments

4 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by Panimu · Apr 03, 2020 at 10:17 AM

So I just had this problem on Unity 2019 and this was the first google result so let me note the answer for the issue here.

Under Build Settings, go into Player Settings, then into Quality. There is a grid at the top, click the arrow next to Default and change it from Fastest to something else (i.e. Fantastic).

You should probably aim to then have this selection available to the users in a menu, somewhere down the line.

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 potatomasterrace · Apr 14, 2020 at 02:26 PM 2
Share

thanks, this is the answer right here

avatar image dmlo · May 08, 2020 at 07:28 AM 1
Share

This also solved my problem. Thanks for this post.

avatar image G-Master · May 29, 2020 at 05:54 PM 1
Share

This had me going crazy for an hour! Thanks for saving me lol

avatar image
1

Answer by senzor · Apr 24, 2015 at 03:56 AM

FIXED! Okay, so I fixed the issue. It was a combination of a couple things. First I changed my single directional light to rendering mode: IMPORTANT. Then I changed the rendering on the camera I think to deferred rendering which fixed shadows on certain objects, but still not my player. The biggest fix was the shader on my objects. I was using pre made textures from a pack and after I changed the shader to a stock unity specular, it appears to be working when I build it. Thanks so much team

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 larsmidnatt · Aug 22, 2015 at 10:32 PM 0
Share

changing to default shader fixed it for me for a few hours, now it's broken again lol.

avatar image
1

Answer by CoderVinod · May 12, 2018 at 07:55 AM

@senzor In my case, it was automatically changing quality settings from Fantastic to Fastest in build. So changed it again to Fantastic from script (Ex : QualitySettings.SetQualityLevel(5)). 5 is id for Fantastic.

Deleting all quality settings except Fantastic also resolves issue.

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

Answer by Antaguar · Oct 30, 2017 at 10:18 PM

In my case the solution was just to increase the rendering quality (drop down selevction when starting the .exe).

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 jchester07 · Oct 31, 2017 at 04:51 AM 0
Share

That is because the quality settings in your project disables the shadows on lower quality.

You can modify it so that in any quality setting, shadows are enabled.

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

11 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

Related Questions

Shadows in Editor But Not in Build 2 Answers

No realtime shadows in webplayer build? 0 Answers

Huge unknown shadow in scene [android] 1 Answer

Distribute terrain in zones 3 Answers

Shadows not working on iPhone with Unity 5.5 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