Unity-2D-Sprite-cast-and-receive-shadows

Just put it on your spriteRenderer and enable castShadows & receiveShadows on it (allowed in Debug mode).