Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Realtime shadows for iOS

Discussion in 'iOS and tvOS' started by twastvedt, Jun 23, 2014.

  1. twastvedt

    twastvedt

    Joined:
    Jun 20, 2014
    Posts:
    3
    I know, this has been asked before. I can't for the life of me figure out how to get shadows working though. In a simple scene with shadows visible, every time I switch to the iOS build platform my shadows disappear. Things I've read about and tried:
    1. I've changed the iOS player quality settings to match the PC ("Good" default settings)
    2. I've changed the target iOS version to a more recent number (6, or 7).
    3. I've checked my license. Help>About reads: "Version 4.5.1f3 ... License Type: Unity Pro, iPhone Pro..."
    4. I've played around with light and shadow settings in the scene, but since shadows show up on the PC build platform, I don't think this is the problem.
    What am I doing wrong? Any suggestions welcome.
     
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,600
    do they work on device? just to check if that's "emulation" issue or smth else. Just to confirm, i totally see shadows locally ;-)
     
  3. twastvedt

    twastvedt

    Joined:
    Jun 20, 2014
    Posts:
    3
    Thanks for the reply and sorry for the delay! I've run a few more tests now. Shadows (Single directional light, forward rendering) show up on the device (iPad) and in Unity on the Mac. The problem only exists in Windows with the iOS player selected. Right now I'm developing (mostly) on Windows but have found that I need to open the project on the mac in order to build for iOS. Still, it would be nice not to have to switch players back and forth on Windows just to see the shadows.
     
  4. Smilediver

    Smilediver

    Joined:
    May 5, 2011
    Posts:
    72
    Could you please submit a bug report with a repro case? Thanks!
     
  5. twastvedt

    twastvedt

    Joined:
    Jun 20, 2014
    Posts:
    3
    Done. Thanks for the help.
     
  6. Smilediver

    Smilediver

    Joined:
    May 5, 2011
    Posts:
    72
    Thanks for a bug report! Seems like a bug with a DirectX renderer for mobile platforms as this affects iOS, Android and BlackBerry. For a workaround you can force editor to use OpenGL by running with a command line option: -force-opengl