Hi. In my game (live on google play store since two years) shadows was working ok.
Now im using Unity 2021.3.11f1 but in the editor shadows works good as always, but in my android devices shadows don’t work. I cannot see them.
Things I have tested and not worked:
- In project settings set all platforms to default Ultra (all are green on ultra). And set Hard shadows there, with a tested shadow distance (50) that should work.
- Builded the game and launched on android with every of this setups: Auto Graphics API on. Auto Graphics API on with all Require ES3.1, ES3.1+AEP, ES3.2. Then with Auto Graphics API off. Then switching top position of Vulkan, OpenGLES 3, OpenGLES2 (deprecated).
No one of this builds showed me shadows on my device.
Debugs logs for:
Debug.Log($"[GraphicSettings] shadows {QualitySettings.shadows}");
Debug.Log($"[GraphicSettings] shadowmaskMode {QualitySettings.shadowmaskMode}");
Debug.Log($"[GraphicSettings] shadowDistance {QualitySettings.shadowDistance}");
Debug.Log($"[GraphicSettings] shadowNearPlaneOffset {QualitySettings.shadowNearPlaneOffset}");
Debug.Log($"[GraphicSettings] shadowResolution {QualitySettings.shadowResolution}");
Debug.Log($"[GraphicSettings] shadowProjection {QualitySettings.shadowProjection}");
Debug.Log($"[GraphicSettings] GetQualityLevel {QualitySettings.GetQualityLevel()}");
[GraphicSettings] shadows HardOnly
[GraphicSettings] shadowmaskMode Shadowmask
[GraphicSettings] shadowDistance 50
[GraphicSettings] shadowNearPlaneOffset 3
[GraphicSettings] shadowResolution High
[GraphicSettings] shadowProjection StableFit
[GraphicSettings] GetQualityLevel 5
Im using Unity 2021.3.11f1.
Using the normal Built-in Render Pipeline.
Tested on Moto G30 and Galaxy S22 Ultra.
Any idea what should I check? Thanks.