Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Size

<readonly> aspectRatio: number

Description:

The proportional relationship between the width and height.

This property is read-only and is updated automatically when either the width or height properties are changed, depending on the aspect mode.

Type:
number
Since: 3.16.0
Source: src/structs/Size.js (Line 82)