Phaser API Documentation


Member of: Phaser.Structs.Size

width: number


The width of this Size component.

This value is clamped to the range specified by minWidth and maxWidth, if enabled.

A width can never be less than zero.

Changing this value will automatically update the height if the aspect ratio lock is enabled. You can also use the setWidth and getWidth methods.

Since: 3.16.0
Source: src/structs/Size.js (Line 664)