Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Size

copy(destination)

Description:

Copies the aspect mode, aspect ratio, width and height from this Size component to the given Size component. Note that the parent, if set, is not copied across.

Parameters:

name type description
destination Phaser.Structs.Size

The Size component to copy the values to.

Returns:
Description:

The updated destination Size component.

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