I’m using the latest version of unreal which was 4.25.3 Btw, I have a static actor which is a tree with animated foliage using the material. i get the only tree without shadows of the leaves.
After that, i enabled the following screenshot. “Cast Dynamic Shadow as mask”.
And this is what i get in the viewport.
Now i make my sunlight Movable. and this is what i get.
After increasing value 3 to 4, this is what i get.
Same settings with the stationary light I get this
If you know how to improve shadows of the leaves of stationary lights, Please Share.