I need this for implementing a sensor with abitrary vertical/horizontal FOV.
I tried to set Filmback.SensorWidth/Filmback.SensorHeight and the values are shown in the Editor, but only width is applied correctly in the visual output. If I try to set the second variable over Filmback.SensorAspectRatio that is overwritten.
If I use
PlayerCamera->SetConstraintAspectRatio(false);
both the values will be changed. But what I want would be an image filling the whole choosen window size, which is distorted depending on the vertical/horizontal field of view.
To get the image to stretch to fill the window, no matter what the window dimensions are, you will have to use a render target to render from the camera, and then map the rendered part of that render target as a texture onto the window using a simple GUI widget bound to the target.