On Mobile, real-time shadow only shown in short Shadow Distance

I am not sure if this is normal. On my mobile devices (iPhone 6 and Android Samsung Galaxy S5), real-time shadow is only shown in short Shadow Distance (less than 20, I guess).

Please see the attached picture including a demo scene. In the scene, I only have one directional light with “Shadow Resolution” set as “Use Quality Settings”.

It seems related shadow parameters (Player Settings → Quality → Shadow Distance) do not affect anything at all, event if I set big values to Shadow Distance. I tried different parameter combinations (from “Fastest” to “Fantastic” quality levels) in Quality settings, and still didn’t fix this issue.

I am using Unity 5.1.3 Personal. As I know, real-time shadows on mobile devices are already available for Unity Personal users. Right?

I figured it out. Some (building? initializing?) process rewrites QualitySettings configured in Unity Editor.
Setting QualitySettings in runtime script fixes the issue.
e.g.
QualitySettings.shadowDistance = 120;

1 Like

I know my message comes after 9 years, but it may help someone.
The quality settings are different based on quality level. Select the quality level in the ProjectSettings-> Quality and adjust the settings for each level (see the attached image):