setUnitsAspectRatio

Description

This function sets the aspect ratio of the scene. The scene’s final aspect ratio will be:

X * numberOfUnitsX()/Y * numberOfUnitsY()

Syntax

scene.setUnitsAspectRatio(x, y);

Arguments

X, Y

X, Y: The X, Y value of the new aspect ratio.

Related Topics 

Scene