Dear All,
I would like to ask for your help.
I want to force a camera in C# to have the exact aspect ratio of an A4 size paper (297/210) and take a screenshot accordingly.
So far the code is as follows:
Camera y = SCamera.GetComponent("Camera") as Camera;
y.enabled=true;
y.aspect=297/210; //SET ASPECT RATIO TO A4 SIZE
Application.CaptureScreenshot("Screenshot.png",4);
In spite I set the camera aspect ratio, the taken screenshot is free aspect just as set in the Game view.
In advance I am thanking you for any help or hints.