• 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 saevioapps · Aug 07, 2014 at 08:05 AM · shadows

Shadows disappear after switching platform to Android

Here are the steps to replicate the issue I'm experiencing: 1. Create a new project 2. Add a plane 3. Add a cube 4. Add a directional light and enable shadows 5. Shadows work fine at this point (they are displayed in the scene view) 6. Go to "File" -> "Build settings", click on Android and then Switch Platform 7. At this point the shadows disappear from scene view, although if I build the project and run it on an android device shadows work.

Switching platform back to Windows works on this project, although it doesn't (shadows do not appear) on another project.

Why do shadows disappear when switching platform to android?

Thank you

Comment
Add comment · Show 1
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 HotClaw · Sep 06, 2014 at 10:07 AM 0
Share

I got this too. I switched to orthographic projection and then back to perspective and now my shadows are gone.

2 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by HotClaw · Sep 09, 2014 at 09:57 PM

I think I had the exact same problem as you. None of the above solutions applied to me, but tonight I finally found the solution by accident.

Check in Edit > Graphics Emulation. If OpenGL ES 2.0 is selected, you won't see any shadows. Just change that setting back to No Emulation, and you'll have shadows again.

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 thornekey · Aug 07, 2014 at 08:21 AM

Your issue is very common, yet very easy to fix. Change the graphical settings for Mobile (in this case Android) devices.

alt text

Edit>Project Settings>Quality>Quality Setings

Click the downward arrow under "Default" to change the default settings. Its defaulted to Medium. Or you can keep it at medium, and change the shadow settings within that.

Regards Nick


ex2.png (20.5 kB)
Comment
Add comment · Show 5 · 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 saevioapps · Aug 07, 2014 at 08:41 AM 0
Share

Hi Nick,

Thank you for your reply.

I have changed to quality settings to very high for android but, still nothing, no shadows.

alt text

screenshot.jpg (300.9 kB)
avatar image thornekey · Aug 07, 2014 at 08:49 AM 0
Share

Hi,

Go to your directional object and check the shadow settings on that:

alt text

$$anonymous$$ake sure its high, or on quality settings.

ex2.png (33.9 kB)
avatar image saevioapps · Aug 07, 2014 at 10:19 AM 0
Share

I did, shadow type is set to soft shadows and resolution to "Use quality Settings", but no shadows. Actually, I can set it to any value, no shadows are displayed.alt text

screenshot2.jpg (290.5 kB)
avatar image MadJohny · Sep 06, 2014 at 10:36 AM 0
Share

Wait what? You can use soft shadows in unity free? o.O It shows no warning

avatar image tanoshimi · Sep 06, 2014 at 10:51 AM 0
Share

No, you can't ;) You can use hard shadows from a single directional light source.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to solve Peter Panning (shadow offset) problem? 1 Answer

Optimize Shadows for Moving Light 0 Answers

Shadows not working 0 Answers

Lightmapped terrain no shadow from dynamic objects 0 Answers

Change Mesh Renderer size property? 2 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