ParaImagePlayer.screenAspectRatio

public Vector2 screenAspectRatio;

Description

The aspect ratio of the render target (read-only). The value can be edited only in the editor and cannot be changed during runtime.

To make it easier for you to edit and read this parameter, it is stored as a Vector2 parameter. When using this parameter, make sure that the value of screenAspectRatio.x / screenAspectRatio.y equals the aspect ratio. The value does not need to be the same as the size of the render target.

For example, assume you are going to render a screen with a resolution of 1920 x 1080, you can set screenAspectRatio in the editor to either (1920, 1080) or (16, 9). Both values are allowed and you can get the same effect.