Limiting things the camera can see in 2D

I’m creating a platformer in 2D and I don’t want the camera to show black void when the player goes all the way to the left or right of the level and that’s what happens since the camera is centered on the player. How can I prevent it from doing this?

Try making the background bigger, they player smaller, the camera closer, or the camera Field of View smaller.

Hi! I know this is an old fred. But here a solution for blueprints. Have to be attached to the tick-event.