Are you using Forward Shading Renderer? Rect light does not work with forward shading (you can check if you are using forward shading by searching it in the Project Settings)