Light passing through walls in android build but not in editor

Hello Everyone,

I am having a very weird issue with my procedurally generated mesh. In my scene i have a top down view of my room, a third person character controller, point light on the player and a spot light pointing forward. In my editor everything is working great but when i build it for android, the spot light is passing through the walls. Its not even leaking, it is passing through the walls as if they dont even exist.
Here’s how my scene looks in the editor vs how it looks on my phone.

So what i have tried so far is as follows -

  • Turned the cast shadows to “on” and “two sided”.
  • Turned the “Dynamic Batching” on and off.
  • Pulled down the shadow bias to zero.
  • Turned on and off the Auto Graphics API.

Its the same result no matter what. Could you please help me with this problem? I look forward to hearing your suggestions.

Anyone stumbling on this defect, the quality was setting down to low when building the apk. So set the default setting to ultra or something that can handle the lights and shadows and it should work.
127308-quality.png