Download

Change camera aspect ratio in game?

Hey so I want to be able to change my cameras aspect ratio at a certain point in game but whenever I do it never works.
I’m using CameraComponent->SetAspectRatio(AspectRatio); which hasn’t been working for me during the game.
Please can someone help me out, any help is much appreciated, thank you!!

Update: I figured out I can but it doesn’t work when I am doing it in the bounded delegate OnViewportResChange(FViewport* Viewport, uint32 val) for some reason,
any ideas on how to fix this?