How do I set the aspect ratio in ACameraActor?

Hi!

I spawned a camera (CameraActor) in code and set the viewtarget for a player controller to the spawned CameraActor. That worked fine except that the aspect ratio changed such that the screen may get black borders in some window sizes and in the editor. The problem now is that I can’t find how to set the aspect ratio and it also seems like the properties in ACameraActor are deprecated. How are you supposed to set the aspect ratio for a camera actor in unreal engine?

Solved it with a blueprint class instead.