How to detect if a character is standing in the shade/shadow?

Imagine a tree is casting a shadow on the landscape. Is there anyway to know if a character is standing in the shade/shadow cast by the tree?

When the character stops running, can a line trace hit the landscape and detect if that area of the landscape has a shadow cast on it from a tree for example?

In blueprint i do not think so. The easiest thing would be to trace to all nearby lights and see if anything stops the trace. You would have to test the bounds or use a sphere trace to know if a majority is concealed vs just a single point. Collision settings will be important and you may want to setup custom collision channels to set on objects so things like windows and such don’t block that trace.