"Camera Zoom & Input"


By: Andres Gutierrez

I recently worked on implementing the camera zoom and the input system. The camera caused me some troubles trying to figure out the best and most efficient way to allow the player to zoom in and out. I decided the best way is to use the Spring Arm target arm length variable to allow the camera to move. This made it a lot easier since you only have to adjust the one variable to let the camera move almost on a tether to the player in a straight line. This is simpler than using complex max blueprints/code to smoothly adjust the camera movement. 

Since there was not a proper input system set in place I also decided to use that to allow the player to use the mouse scroll wheel to adjust zoom on camera. I first tried to use the input system made in the Project Settings -> Input category, however that has been deprecated. This caused me issues so I erased all code using the Project Settings Inputs and started using the new Enhanced Input system. I did this by making several inputs with a 1DAxis and made modifications for it. This system proved to be a little more complex but offered more features to make implementation easier in the Unreal editor.

Leave a comment

Log in with itch.io to leave a comment.