I don’t have a mesh in front of the camera (I don’t have a mesh on the player at all right now), and I’ve tried adding different offsets to the spotlight. The project is configured for PC, and I’ve also made sure point light components will cast shadows (they do).
Here’s how the component is attached:
EDIT: Also, the light itself works fine, it just doesn’t cast dynamic shadows.
Here’s the hierarchy of components (FlashlightComponent is the spotlight):