Camera FOV and offset fit background sprite vertically to any resolution and never show "the end of the world"

Hello,

I have a question that I have not been able to find an answer for yet.

I am making a Paper2D game. Every level will have one background (sprite).

I have 2 particular blueprint classes. One camera manager class and one actor class. The actor class is named BackgroundBP. The camera manager class is called CameraManagerBP.

CameraManagerBP

BackgroundBP

My goal is to run the game, and no matter the size of the game screen or how far the background is from the camera, I would like the camera to show the entire height of the background sprite. As the character moves left and right, I want the camera to stop at the sides of the background sprite as soon as the “end” is reached. I do not want the height or sides to be cut off or the camera to show “the end of the world”. The most important bit, is that I want the full height to ALWAYS show on the screen.

I try to make it as clear as possible. In case additional information is needed, please do not hesitate to request.

273040-illustration1.png