Phaser API Documentation

  Version: 
<static> Clone(obj)

Description:

Shallow Object Clone. Will not clone nested objects.

Parameters:

name type description
obj object

The object to clone.

Returns:
Description:

A new object with the same properties as the input object.

Type:
  • object
Since: 3.0.0
Source: src/utils/object/Clone.js (Line 7)