Download

How to Enable Dynamic Shadows on Mobile?

Hi,
I have been trying to figure out how dynamic lighting setup works in unreal engine 4.18 for mobile dev.
(using an iPhone 7)

I tried posting on the answer hub but couldn’t find any answers.

The furthest I got is this forum thread,
https://forums.unrealengine.com/deve…aps-on-Mobile=

Even though I still can’t make my game work with a movable dorectional light that casts shadows, I at least know that this is doable.

My problem is, the game deploys to my phone but it won’t open. It crashes immediately after the splash screen.

I have a basic light and a material setup,

Every material in the level is default lit.

A movable directional light, that casts shadows and dynamic shadows. It’s Cascaded Shadow maps assigned to 2.

And also a static skylight which doesn’t casts shadows.

Is there a way that I can understand what exactly causes the app to crash?

Really appreciate any help.

Anyone? :frowning:

Have you got CastModulatedShadows enabled on your DirectionalLight ?

And is the Directional Light set to be Stationary?
And is your project set to use Mobile HDR?